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

Function async_client

tests/lib/test_google_cloud_live.py:46–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44
45@pytest.fixture
46async def async_client() -> AsyncIterator[AsyncAnthropicGoogleCloud]:
47 client = AsyncAnthropicGoogleCloud(
48 location=LOCATION,
49 max_retries=1,
50 http_client=httpx2.AsyncClient(timeout=60.0),
51 )
52 try:
53 yield client
54 finally:
55 await client.close()
56
57
58class TestSyncLive:

Callers

nothing calls this directly

Calls 2

closeMethod · 0.45

Tested by

no test coverage detected