MCPcopy Create free account
hub / github.com/ZyphrZero/z.ai2api_python / FakeResponse

Class FakeResponse

tests/test_upstream_dual_pool.py:60–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58
59
60class FakeResponse:
61 def __init__(self, status_code: int, text: str = "{}"):
62 self.status_code = status_code
63 self.text = text
64
65 @property
66 def is_success(self) -> bool:
67 return 200 <= self.status_code < 300
68
69
70def _build_fake_async_client(handler):

Callers 1

handlerFunction · 0.70

Calls

no outgoing calls

Tested by 1

handlerFunction · 0.56