예제 #1
0
파일: common.py 프로젝트: Cbrdiv/spkrepo
 def setUp(self):
     if not os.path.exists(self.DATA_PATH):
         os.mkdir(self.DATA_PATH)
     db.drop_all()
     db.create_all()
     populate_db()
     db.session.commit()
     db.session.autoflush = False
예제 #2
0
 def setUp(self):
     if not os.path.exists(self.DATA_PATH):
         os.mkdir(self.DATA_PATH)
     db.drop_all()
     db.create_all()
     populate_db()
     db.session.commit()
     db.session.autoflush = False
예제 #3
0
파일: manage.py 프로젝트: Cbrdiv/spkrepo
def drop():
    """Drop database"""
    db.drop_all()
예제 #4
0
파일: common.py 프로젝트: Cbrdiv/spkrepo
 def tearDown(self):
     db.session.remove()
     db.drop_all()
     db.session.autoflush = True
     shutil.rmtree(self.DATA_PATH)
예제 #5
0
def drop():
    """Drop database"""
    db.drop_all()
예제 #6
0
 def tearDown(self):
     db.session.remove()
     db.drop_all()
     db.session.autoflush = True
     shutil.rmtree(self.DATA_PATH)