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

Function sync_client

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

Source from the content-addressed store, hash-verified

31
32@pytest.fixture
33def sync_client() -> Iterator[AnthropicGoogleCloud]:
34 client = AnthropicGoogleCloud(
35 location=LOCATION,
36 max_retries=1,
37 http_client=httpx2.Client(timeout=60.0),
38 )
39 try:
40 yield client
41 finally:
42 client.close()
43
44
45@pytest.fixture

Calls 2

closeMethod · 0.45

Tested by

no test coverage detected