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

Method test_base_url_env

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

Source from the content-addressed store, hash-verified

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"):
524 client = Opencode(_strict_response_validation=True)
525 assert client.base_url == "http://localhost:5000/from/env/"
526
527 @pytest.mark.parametrize(
528 "client",

Callers

nothing calls this directly

Calls 2

OpencodeClass · 0.90
update_envFunction · 0.85

Tested by

no test coverage detected