def setUp(self): db.create_all() populate(default_data=True) # reset login settings in case tests fail self.app.config['APP_LOGIN_ENABLED'] = True self.app.config['CAS_LOGIN_ENABLED'] = True self.app.config['LTI_LOGIN_ENABLED'] = True
def setUp(self): db.create_all() with suppress_stdout(): populate(default_data=True) # reset login settings in case tests fail self.app.config['APP_LOGIN_ENABLED'] = True self.app.config['CAS_LOGIN_ENABLED'] = True self.app.config['LTI_LOGIN_ENABLED'] = True
def _create_tables(): db.create_all() # add database version table and add current head version alembic_cfg = Config("alembic.ini") alembic_cfg.attributes['configure_logger'] = False command.stamp(alembic_cfg, 'head') print('All tables created...')
def create(default_data=True, sample_data=False): """Creates database tables from sqlalchemy models""" db.create_all() populate(default_data, sample_data) # add database version table and add current head version alembic_cfg = Config("alembic.ini") command.stamp(alembic_cfg, 'head') print ('All tables are created and data is loaded.')
def setUp(self): db.create_all() with suppress_stdout(): populate(default_data=True, sample_data=True) self.app.config['DEMO_INSTALLATION'] = True