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

Method mock_handler

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

Source from the content-addressed store, hash-verified

1070 iterator = _make_sync_iterator([file_content], counter=counter)
1071
1072 def mock_handler(request: httpx2.Request) -> httpx2.Response:
1073 assert counter.value == 0, "the request body should not have been read"
1074 return httpx2.Response(200, content=request.read())
1075
1076 with Anthropic(
1077 base_url=base_url,

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected