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

Function async_client

tests/conftest.py:45–51  ·  view source on GitHub ↗
(request: FixtureRequest)

Source from the content-addressed store, hash-verified

43
44@pytest.fixture(scope="session")
45async def async_client(request: FixtureRequest) -> AsyncIterator[AsyncAnthropic]:
46 strict = getattr(request, "param", True)
47 if not isinstance(strict, bool):
48 raise TypeError(f"Unexpected fixture parameter type {type(strict)}, expected {bool}")
49
50 async with AsyncAnthropic(base_url=base_url, api_key=api_key, _strict_response_validation=strict) as client:
51 yield client

Callers

nothing calls this directly

Calls 1

AsyncAnthropicClass · 0.90

Tested by

no test coverage detected