def setup(self):
    handle_db_seed()
    self.app = APP
    self.app.config['SQLALCHEMY_DATABASE_URI'] = mscolab_settings.SQLALCHEMY_DB_URI
    self.app.config['MSCOLAB_DATA_DIR'] = mscolab_settings.MSCOLAB_DATA_DIR
    self.app.config['UPLOAD_FOLDER'] = mscolab_settings.UPLOAD_FOLDER
    (self.app, _, cm, fm) = initialize_managers(self.app)
    self.fm = fm
    self.cm = cm
    db.init_app(self.app)
    with self.app.app_context():
        self.user = User.query.filter_by(id=8).first()
def setup(self):
    handle_db_seed()
    self.app = APP
    self.app.config['SQLALCHEMY_DATABASE_URI'] = mscolab_settings.SQLALCHEMY_DB_URI
    self.app.config['MSCOLAB_DATA_DIR'] = mscolab_settings.MSCOLAB_DATA_DIR
    self.app.config['UPLOAD_FOLDER'] = mscolab_settings.UPLOAD_FOLDER
    (self.app, _, cm, fm) = initialize_managers(self.app)
    self.fm = fm
    self.cm = cm
    db.init_app(self.app)
    with self.app.app_context():
        self.user = User.query.filter_by(id=8).first()