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

Method test_base_url_env

tests/test_client.py:1938–1941  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1936 await client.close()
1937
1938 async def test_base_url_env(self) -> None:
1939 with update_env(ANTHROPIC_BASE_URL="http://localhost:5000/from/env"):
1940 client = AsyncAnthropic(api_key=api_key, _strict_response_validation=True)
1941 assert client.base_url == "http://localhost:5000/from/env/"
1942
1943 @pytest.mark.parametrize(
1944 "client",

Callers

nothing calls this directly

Calls 2

AsyncAnthropicClass · 0.90
update_envFunction · 0.85

Tested by

no test coverage detected