Exemplo n.º 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()
Exemplo n.º 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()
Exemplo n.º 5
0
 def tearDown(self):
     db.session.remove()
     db.drop_all()
     [ctx.pop() for ctx in self.ctxs]
Exemplo n.º 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()