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

test_client_timeout_option() — anthropic-sdk-python Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  78a3ec45_77df_2699_0989_94056c34d699["test_client_timeout_option()"]
  9bf4cfe0_e3b0_70de_25ac_2113c8918900["TestAsyncAnthropic"]
  78a3ec45_77df_2699_0989_94056c34d699 -->|defined in| 9bf4cfe0_e3b0_70de_25ac_2113c8918900
  b6bffdd4_9cd0_222e_53c1_a2ecfde028ff["test_client_timeout_option()"]
  b6bffdd4_9cd0_222e_53c1_a2ecfde028ff -->|calls| 78a3ec45_77df_2699_0989_94056c34d699
  b6bffdd4_9cd0_222e_53c1_a2ecfde028ff["test_client_timeout_option()"]
  78a3ec45_77df_2699_0989_94056c34d699 -->|calls| b6bffdd4_9cd0_222e_53c1_a2ecfde028ff
  style 78a3ec45_77df_2699_0989_94056c34d699 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_client.py lines 1301–1310

    async def test_client_timeout_option(self) -> None:
        client = AsyncAnthropic(
            base_url=base_url, api_key=api_key, _strict_response_validation=True, timeout=httpx.Timeout(0)
        )

        request = client._build_request(FinalRequestOptions(method="get", url="/foo"))
        timeout = httpx.Timeout(**request.extensions["timeout"])  # type: ignore
        assert timeout == httpx.Timeout(0)

        await client.close()

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free