MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / error

Function error

tests/lib/test_refusal_fallback.py:74–75  ·  view source on GitHub ↗
(status: int)

Source from the content-addressed store, hash-verified

72
73
74def error(status: int) -> httpx2.Response:
75 return httpx2.Response(status, json={"type": "error", "error": {"type": "api_error", "message": "nope"}})
76
77
78class MockRequestCall(Protocol):

Calls

no outgoing calls

Tested by

no test coverage detected