(self)
| 290 | assert timeout == DEFAULT_TIMEOUT # our default |
| 291 | |
| 292 | async def test_invalid_http_client(self) -> None: |
| 293 | with pytest.raises(TypeError, match="Invalid `http_client` arg"): |
| 294 | async with httpx.AsyncClient() as http_client: |
| 295 | Opencode(base_url=base_url, _strict_response_validation=True, http_client=cast(Any, http_client)) |
| 296 | |
| 297 | def test_default_headers_option(self) -> None: |
| 298 | client = Opencode(base_url=base_url, _strict_response_validation=True, default_headers={"X-Foo": "bar"}) |