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

Function client

tests/test_prepare.py:110–113  ·  view source on GitHub ↗
(
    request: pytest.FixtureRequest, client: Anthropic, async_client: AsyncAnthropic
)

Source from the content-addressed store, hash-verified

108
109@pytest.fixture(params=[True, False], ids=["sync", "async"])
110def client(
111 request: pytest.FixtureRequest, client: Anthropic, async_client: AsyncAnthropic
112) -> Anthropic | AsyncAnthropic:
113 return client if request.param else async_client
114
115
116@pytest.fixture

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected