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

Method test_base_url_env

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

Source from the content-addressed store, hash-verified

2592 await client.close()
2593
2594 async def test_base_url_env(self) -> None:
2595 with update_env(ANTHROPIC_BASE_URL="http://localhost:5000/from/env"):
2596 client = AsyncAnthropic(api_key=api_key, _strict_response_validation=True)
2597 assert client.base_url == "http://localhost:5000/from/env/"
2598
2599 @pytest.mark.parametrize(
2600 "client",

Callers

nothing calls this directly

Calls 2

AsyncAnthropicClass · 0.90
update_envFunction · 0.85

Tested by

no test coverage detected