MCPcopy Create free account
hub / github.com/psf/cachecontrol / test_get_caches

Method test_get_caches

tests/test_adapter.py:42–44  ·  view source on GitHub ↗
(self, url, sess)

Source from the content-addressed store, hash-verified

40
41class TestSessionActions:
42 def test_get_caches(self, url, sess):
43 r2 = sess.get(url)
44 assert r2.from_cache is True
45
46 def test_get_with_no_cache_does_not_cache(self, url, sess):
47 r2 = sess.get(url, headers={"Cache-Control": "no-cache"})

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected