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

Class FakeResponse

tests/test_new_api_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
18def make_account(**kwargs):

Callers 1

postMethod · 0.70

Calls

no outgoing calls

Tested by 1

postMethod · 0.56