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

Class FakeResponse

tests/test_cpa_upload.py:4–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2
3
4class FakeResponse:
5 def __init__(self, status_code=200, payload=None, text=""):
6 self.status_code = status_code
7 self._payload = payload
8 self.text = text
9
10 def json(self):
11 if self._payload is None:
12 raise ValueError("no json payload")
13 return self._payload
14
15
16class FakeMime:

Callers 3

fake_postFunction · 0.70
fake_getFunction · 0.70

Calls

no outgoing calls

Tested by 3

fake_postFunction · 0.56
fake_getFunction · 0.56