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

Method test_base_url_env

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

Source from the content-addressed store, hash-verified

818 client.close()
819
820 def test_base_url_env(self) -> None:
821 with update_env(ANTHROPIC_BASE_URL="http://localhost:5000/from/env"):
822 client = Anthropic(api_key=api_key, _strict_response_validation=True)
823 assert client.base_url == "http://localhost:5000/from/env/"
824
825 @pytest.mark.parametrize(
826 "client",

Callers

nothing calls this directly

Calls 2

AnthropicClass · 0.90
update_envFunction · 0.85

Tested by

no test coverage detected