(self, client: Anthropic)
| 406 | raise AssertionError() |
| 407 | |
| 408 | def test_request_timeout(self, client: Anthropic) -> None: |
| 409 | request = client._build_request(FinalRequestOptions(method="get", url="/foo")) |
| 410 | timeout = httpx2.Timeout(**request.extensions["timeout"]) # type: ignore |
| 411 | assert timeout == DEFAULT_TIMEOUT |
| 412 | |
| 413 | request = client._build_request(FinalRequestOptions(method="get", url="/foo", timeout=httpx2.Timeout(100.0))) |
| 414 | timeout = httpx2.Timeout(**request.extensions["timeout"]) # type: ignore |
| 415 | assert timeout == httpx2.Timeout(100.0) |
| 416 | |
| 417 | def test_client_timeout_option(self) -> None: |
| 418 | client = Anthropic( |
nothing calls this directly
no test coverage detected