def database(app): _db.create_all() set_settings(app_name='Open Event', app_environment=Environment.TESTING) yield _db Setup.drop_db()
def tearDownClass(cls) -> None: Setup.drop_db()
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()