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

Function handler

tests/test_client.py:66–67  ·  view source on GitHub ↗
(_request: httpx2.Request)

Source from the content-addressed store, hash-verified

64
65def transport_that_raises(error: Exception) -> httpx2.MockTransport:
66 def handler(_request: httpx2.Request) -> httpx2.Response:
67 raise error
68
69 return httpx2.MockTransport(handler)
70

Callers 3

_validateMethod · 0.50
handleMethod · 0.50
handleMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected