MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / DummyResponse

Class DummyResponse

tests/test_registration_sentinel_flow.py:28–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27
28class DummyResponse:
29 def __init__(self, status_code=200, payload=None, text="", headers=None):
30 self.status_code = status_code
31 self._payload = payload
32 self.text = text
33 self.headers = headers or {}
34
35 def json(self):
36 if self._payload is None:
37 raise ValueError("no json payload")
38 return self._payload
39
40
41class CaptureSession:

Calls

no outgoing calls