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

Method test_base_url_setter

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

Source from the content-addressed store, hash-verified

1287 assert response.foo == 2
1288
1289 def test_base_url_setter(self) -> None:
1290 client = AsyncOpencode(base_url="https://example.com/from_init", _strict_response_validation=True)
1291 assert client.base_url == "https://example.com/from_init/"
1292
1293 client.base_url = "https://example.com/from_setter" # type: ignore[assignment]
1294
1295 assert client.base_url == "https://example.com/from_setter/"
1296
1297 def test_base_url_env(self) -> None:
1298 with update_env(OPENCODE_BASE_URL="http://localhost:5000/from/env"):

Callers

nothing calls this directly

Calls 1

AsyncOpencodeClass · 0.90

Tested by

no test coverage detected