def database(app):
    _db.create_all()
    set_settings(app_name='Open Event', app_environment=Environment.TESTING)
    yield _db
    Setup.drop_db()
Exemple #2
0
 def tearDownClass(cls) -> None:
     Setup.drop_db()
Exemple #3
0
 def tearDown(self) -> None:
     Setup.drop_db()
 def tearDown(self):
     Setup.drop_db()
def database(app):
    _db.engine.execute('create extension if not exists citext')
    _db.create_all()
    set_settings(app_name='Open Event', app_environment=Environment.TESTING)
    yield _db
    Setup.drop_db()
Exemple #6
0
 def tearDown(self):
     Setup.drop_db()