def setUp(self): # creates a test client self.app = app.test_client() # propagate the exceptions to the test client self.app.testing = True