Exemple #1
0
def dropdb():
    """ drops all database tables """
    with app.test_request_context():
        db.drop_all()
Exemple #2
0
 def tearDown(self):
     db.session.remove()
     db.drop_all()