(self, client: Anthropic)
| 342 | raise AssertionError() |
| 343 | |
| 344 | def test_request_timeout(self, client: Anthropic) -> None: |
| 345 | request = client._build_request(FinalRequestOptions(method="get", url="/foo")) |
| 346 | timeout = httpx2.Timeout(**request.extensions["timeout"]) # type: ignore |
| 347 | assert timeout == DEFAULT_TIMEOUT |
| 348 | |
| 349 | request = client._build_request(FinalRequestOptions(method="get", url="/foo", timeout=httpx2.Timeout(100.0))) |
| 350 | timeout = httpx2.Timeout(**request.extensions["timeout"]) # type: ignore |
| 351 | assert timeout == httpx2.Timeout(100.0) |
| 352 | |
| 353 | def test_client_timeout_option(self) -> None: |
| 354 | client = Anthropic( |
nothing calls this directly
no test coverage detected