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

Method test_base_url_setter

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

Source from the content-addressed store, hash-verified

512 assert response.foo == 2
513
514 def test_base_url_setter(self) -> None:
515 client = Opencode(base_url="https://example.com/from_init", _strict_response_validation=True)
516 assert client.base_url == "https://example.com/from_init/"
517
518 client.base_url = "https://example.com/from_setter" # type: ignore[assignment]
519
520 assert client.base_url == "https://example.com/from_setter/"
521
522 def test_base_url_env(self) -> None:
523 with update_env(OPENCODE_BASE_URL="http://localhost:5000/from/env"):

Callers

nothing calls this directly

Calls 1

OpencodeClass · 0.90

Tested by

no test coverage detected