def drop_db(): config_app(app, **config) from lobbypy.utils import db if prompt_bool( "Are you sure you want to clear the database"): db.drop_all()
def tearDown(self): db.session.remove() db.drop_all()
def tearDown(self): db.session.remove() db.drop_all() [ctx.pop() for ctx in self.ctxs]
def drop_db(): config_app(app) from lobbypy.utils import db if prompt_bool("Are you sure you want to clear the database"): db.drop_all()