MCPcopy Create free account
hub / github.com/HisMax/RedInk / FakeResponse

Class FakeResponse

tests/image_api_client_test.py:8–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7
8class FakeResponse:
9 def __init__(self, status_code=200, payload=None, text="", content=b""):
10 self.status_code = status_code
11 self._payload = payload or {}
12 self.text = text
13 self.content = content
14 self.headers = {}
15
16 def json(self):
17 return self._payload
18
19
20class FakeSession:

Calls

no outgoing calls