(self, url, tmpdir)
| 30 | |
| 31 | @pytest.fixture() |
| 32 | def sess(self, url, tmpdir): |
| 33 | self.url = url |
| 34 | self.cache = self.FileCacheClass(str(tmpdir)) |
| 35 | sess = CacheControl(requests.Session(), cache=self.cache) |
| 36 | yield sess |
| 37 | |
| 38 | # closing session object |
| 39 | sess.close() |
| 40 | |
| 41 | def test_filecache_from_cache(self, sess): |
| 42 | response = sess.get(self.url) |
nothing calls this directly
no test coverage detected