MCPcopy Create free account
hub / github.com/requests-cache/requests-cache / InvalidResponse

Class InvalidResponse

tests/unit/test_base_cache.py:34–41  ·  view source on GitHub ↗

Class that will raise an error when unpickled

Source from the content-addressed store, hash-verified

32
33
34class InvalidResponse:
35 """Class that will raise an error when unpickled"""
36
37 def __init__(self):
38 self.foo = 'bar'
39
40 def __setstate__(self, value):
41 raise ValueError('Invalid response!')
42
43
44def test_contains__key(mock_session):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…