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

Method __init__

tests/image_api_client_test.py:21–25  ·  view source on GitHub ↗
(self, responses=None, get_response=None)

Source from the content-addressed store, hash-verified

19
20class FakeSession:
21 def __init__(self, responses=None, get_response=None):
22 self.responses = list(responses or [])
23 self.get_response = get_response or FakeResponse(content=b"url-image")
24 self.posts = []
25 self.gets = []
26
27 def post(self, url, headers=None, json=None, timeout=None):
28 self.posts.append({"url": url, "json": dict(json or {})})

Callers

nothing calls this directly

Calls 1

FakeResponseClass · 0.85

Tested by

no test coverage detected