def drop(): """Drops database tables""" if prompt_bool("Are you sure you want to lose all your data"): db.drop_all() print('All tables are dropped.') return True return False
def drop(): """Drops database tables""" if prompt_bool("Are you sure you want to lose all your data"): db.drop_all() print ('All tables are dropped.') return True return False
def tearDown(self): db.session.remove() db.drop_all()