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

Method resp

tests/test_cache_control.py:31–35  ·  view source on GitHub ↗
(self, headers=None)

Source from the content-addressed store, hash-verified

29 return Mock(full_url=self.url, url=self.url, headers=headers) # < 1.x support
30
31 def resp(self, headers=None):
32 headers = headers or {}
33 return Mock(
34 status=200, headers=headers, request=self.req(), read=lambda **k: b"testing"
35 )
36
37 @pytest.fixture()
38 def cc(self):

Calls 1

reqMethod · 0.95

Tested by

no test coverage detected