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

Method test_base_url_env

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

Source from the content-addressed store, hash-verified

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"):
1299 client = AsyncOpencode(_strict_response_validation=True)
1300 assert client.base_url == "http://localhost:5000/from/env/"
1301
1302 @pytest.mark.parametrize(
1303 "client",

Callers

nothing calls this directly

Calls 2

AsyncOpencodeClass · 0.90
update_envFunction · 0.85

Tested by

no test coverage detected