MCPcopy Index your code
hub / github.com/commandoperator/cmdop-sdk / test_base_url_precedence

Function test_base_url_precedence

python/tests/test_config.py:57–63  ·  view source on GitHub ↗
(monkeypatch: pytest.MonkeyPatch)

Source from the content-addressed store, hash-verified

55
56
57def test_base_url_precedence(monkeypatch: pytest.MonkeyPatch) -> None:
58 monkeypatch.setenv("CMDOP_BASE_URL", "https://env.example.com")
59 assert ClientConfig.resolve(token="t").base_url == "https://env.example.com"
60 assert (
61 ClientConfig.resolve(token="t", base_url="https://explicit.example.com/").base_url
62 == "https://explicit.example.com"
63 )
64
65
66def test_fleet_and_timeout_from_env(monkeypatch: pytest.MonkeyPatch) -> None:

Callers

nothing calls this directly

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected