Пример #1
0
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()
Пример #2
0
 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 tearDown(self):
     db.session.remove()
     db.drop_all()
Пример #5
0
 def tearDown(self):
     db.session.remove()
     db.drop_all()
     [ctx.pop() for ctx in self.ctxs]
Пример #6
0
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()