Beispiel #1
0
    def tearDown(self):

        db.session.remove()
        db.drop_all()
Beispiel #2
0
def dropdb():
    if prompt_bool(
        "Are you sure you want to lose all your data?"):
        db.drop_all()
        print('Dropped the database')