示例#1
0
def database(app):
    _db.create_all()
    set_settings(app_name='Open Event', app_environment=Environment.TESTING)
    yield _db
    Setup.drop_db()
示例#2
0
 def tearDownClass(cls) -> None:
     Setup.drop_db()
示例#3
0
 def tearDown(self) -> None:
     Setup.drop_db()
示例#4
0
 def tearDown(self):
     Setup.drop_db()
示例#5
0
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()
示例#6
0
 def tearDown(self):
     Setup.drop_db()