Home / Function/ test_proxy_environment_variables() — anthropic-sdk-python Function Reference

test_proxy_environment_variables() — anthropic-sdk-python Function Reference

Architecture documentation for the test_proxy_environment_variables() function in test_client.py from the anthropic-sdk-python codebase.

Function python AnthropicClient SyncAPI calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  34d44099_da67_14d8_73fd_5aa080864c3f["test_proxy_environment_variables()"]
  9bf4cfe0_e3b0_70de_25ac_2113c8918900["TestAsyncAnthropic"]
  34d44099_da67_14d8_73fd_5aa080864c3f -->|defined in| 9bf4cfe0_e3b0_70de_25ac_2113c8918900
  cbcee2fc_fa57_2819_d826_9359190816b6["test_proxy_environment_variables()"]
  cbcee2fc_fa57_2819_d826_9359190816b6 -->|calls| 34d44099_da67_14d8_73fd_5aa080864c3f
  cbcee2fc_fa57_2819_d826_9359190816b6["test_proxy_environment_variables()"]
  34d44099_da67_14d8_73fd_5aa080864c3f -->|calls| cbcee2fc_fa57_2819_d826_9359190816b6
  style 34d44099_da67_14d8_73fd_5aa080864c3f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_client.py lines 2048–2056

    async def test_proxy_environment_variables(self, monkeypatch: pytest.MonkeyPatch) -> None:
        # Test that the proxy environment variables are set correctly
        monkeypatch.setenv("HTTPS_PROXY", "https://example.org")

        client = DefaultAsyncHttpxClient()

        mounts = tuple(client._mounts.items())
        assert len(mounts) == 1
        assert mounts[0][0].pattern == "https://"

Subdomains

Frequently Asked Questions

What does test_proxy_environment_variables() do?
test_proxy_environment_variables() is a function in the anthropic-sdk-python codebase, defined in tests/test_client.py.
Where is test_proxy_environment_variables() defined?
test_proxy_environment_variables() is defined in tests/test_client.py at line 2048.
What does test_proxy_environment_variables() call?
test_proxy_environment_variables() calls 1 function(s): test_proxy_environment_variables.
What calls test_proxy_environment_variables()?
test_proxy_environment_variables() is called by 1 function(s): test_proxy_environment_variables.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free