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

Class FakeResponse

tests/test_codex2api_upload.py:6–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

fake_postFunction · 0.70
fake_getFunction · 0.70

Calls

no outgoing calls

Tested by 2

fake_postFunction · 0.56
fake_getFunction · 0.56