예제 #1
0
 def tearDownClass(cls):
     super(GleagueTestCase, cls).tearDownClass()
     db.session.rollback()
     db.drop_all()
     db.session.commit()
예제 #2
0
 def setUpClass(cls):
     super(GleagueTestCase, cls).setUpClass()
     db.drop_all()
     db.create_all()
     db.session.commit()