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

Method test_base_url_env

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

Source from the content-addressed store, hash-verified

2629 await client.close()
2630
2631 async def test_base_url_env(self) -> None:
2632 with update_env(ANTHROPIC_BASE_URL="http://localhost:5000/from/env"):
2633 client = AsyncAnthropic(api_key=api_key, _strict_response_validation=True)
2634 assert client.base_url == "http://localhost:5000/from/env/"
2635
2636 @pytest.mark.parametrize(
2637 "client",

Callers

nothing calls this directly

Calls 2

AsyncAnthropicClass · 0.90
update_envFunction · 0.85

Tested by

no test coverage detected