def tearDown(self): db.session.remove() db.drop_all()
def drop_all(): if prompt_bool("Are you sure? You will lose all your data!"): db.drop_all()