Пример #1
0
 def setUp(self):
     """ This runs before each test """
     reset_counters()
     self.app = app.test_client()
Пример #2
0
 def setUp(self):
     """ This runs before each test """
     self.app = app.test_client()
Пример #3
0
 def setUp(self):
     """ Runs before each test """
     db.drop_all()  # clean up the last tests
     db.create_all()  # create new tables
     self.app = app.test_client()