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

Method mock_handler

tests/test_client.py:2527–2529  ·  view source on GitHub ↗
(request: httpx2.Request)

Source from the content-addressed store, hash-verified

2525 iterator = _make_async_iterator([file_content], counter=counter)
2526
2527 async def mock_handler(request: httpx2.Request) -> httpx2.Response:
2528 assert counter.value == 0, "the request body should not have been read"
2529 return httpx2.Response(200, content=await request.aread())
2530
2531 async with AsyncAnthropic(
2532 base_url=base_url,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected