示例#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()