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

Method setup_method

tests/test_expires_heuristics.py:71–73  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69
70class TestOneDayCache:
71 def setup_method(self):
72 self.sess = Session()
73 self.cached_sess = CacheControl(self.sess, heuristic=OneDayCache())
74
75 def test_cache_for_one_day(self, url):
76 the_url = url + "optional_cacheable_request"

Callers

nothing calls this directly

Calls 2

CacheControlFunction · 0.90
OneDayCacheClass · 0.90

Tested by

no test coverage detected