(self)
| 437 | _RAW = TestExplainCacheHeaders._RAW |
| 438 | |
| 439 | def setUp(self): |
| 440 | self.app = create_app() |
| 441 | self.app.config["DEBUG"] = True |
| 442 | self.app.config["APP_VERSION"] = "deadbeef" |
| 443 | self.app.config["DB_SHA256"] = "abcdef0123456789fedcba9876543210" |
| 444 | self.store = Store.create(":memory:") |
| 445 | self.store.add_manpage(TestExplainCacheHeaders._make_mp(self), self._RAW) |
| 446 | _use_store(self.app, self.store) |
| 447 | self.app.config["TESTING"] = True |
| 448 | self.client = self.app.test_client() |
| 449 | |
| 450 | def test_program_view_has_no_cache_headers(self): |
| 451 | rv = self.client.get("/explain/bar") |
nothing calls this directly
no test coverage detected