MCPcopy Create free account
hub / github.com/anomalyco/opencode-sdk-python / test_invalid_http_client

Method test_invalid_http_client

tests/test_client.py:292–295  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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"})

Callers

nothing calls this directly

Calls 1

OpencodeClass · 0.90

Tested by

no test coverage detected