예제 #1
0
    def tearDown(self):

        db.session.remove()
        db.drop_all()
예제 #2
0
파일: manage.py 프로젝트: LucasAmos/Project
def dropdb():
    if prompt_bool(
        "Are you sure you want to lose all your data?"):
        db.drop_all()
        print('Dropped the database')