Пример #1
0
 def teardown(self):
     """
     Run once after every test. Drop the test database.
     """
     with self.app.test_request_context():
         db.session.remove()
         db.drop_all()
Пример #2
0
 def tearDown(self):
     """
     Run once after every test. Drop the test database.
     """
     db.session.remove()
     db.drop_all()