예제 #1
0
 def tearDown(self):
     db.session.rollback()
     db.session.close()
     db.drop_all()  # stall here implies connection leak
     db.session.remove()
     db.get_engine(self.app).dispose()
예제 #2
0
 def setUp(self):
     db.get_engine(self.app).dispose()
     db.create_all()
     db.session.begin_nested()
예제 #3
0
 def tearDown(self):
     db.session.rollback()
     db.session.close()
     db.drop_all()  # stall here implies connection leak
     db.session.remove()
     db.get_engine(self.app).dispose()
예제 #4
0
 def tearDown(self):
     db.session.rollback()
     db.drop_all()
     db.session.remove()
     db.get_engine(self.app).dispose()
예제 #5
0
 def setUp(self):
     db.get_engine(self.app).dispose()
     db.create_all()
     db.session.begin_nested()