def setUp(self): """ Configure Flask application before each test. """ app.test_request_context(headers={"mimetype": "application/json"}) self.flask_app = app self.app = app.test_client()
def setUp(self): """ Configure Flask application before each test. """ app.test_request_context(headers={"mimetype": "application/json"}) self.flask_app = app self.app = app.test_client() self.base_headers = {} self.post_headers = {"Content-type": "application/json"} from zou.app.utils import cache cache.clear()