예제 #1
0
 def tearDown(self):
     db.session.remove()
     self._ctx.push() # Why do I need this line?
     db.drop_all()
예제 #2
0
 def tearDown(self):
     db.session.remove()
     self._ctx.push()  # Why do I need this line?
     db.drop_all()
예제 #3
0
 def clear_db(self):
     db.drop_all()
     db.create_all()
예제 #4
0
 def clear_db(self):
     db.drop_all()
     db.create_all()