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

Function _requests_to

tests/lib/test_credentials.py:2430–2432  ·  view source on GitHub ↗
(respx_mock: MockRouter, base_url: str)

Source from the content-addressed store, hash-verified

2428
2429
2430def _requests_to(respx_mock: MockRouter, base_url: str) -> List[httpx2.Request]:
2431 calls = cast("list[MockRequestCall]", respx_mock.calls)
2432 return [c.request for c in calls if str(c.request.url).startswith(f"{base_url}/")]
2433
2434
2435def _assert_exchanged_and_called_own_deployment(respx_mock: MockRouter, base_url: str, token: str) -> None:

Calls

no outgoing calls

Tested by

no test coverage detected