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

Function async_client

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

closeMethod · 0.45

Tested by

no test coverage detected