MCPcopy Create free account
hub / github.com/commandoperator/cmdop-sdk / _clean_env

Function _clean_env

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

Source from the content-addressed store, hash-verified

17 config = ClientConfig.resolve(token="arg", base_url="https://arg///", timeout_ms=99)
18 assert config == ClientConfig(token="arg", base_url="https://arg", timeout_ms=99)
19
20
21def test_platform_api_key_is_not_a_relay_token(monkeypatch: pytest.MonkeyPatch) -> None:
22 monkeypatch.delenv("CMDOP_TOKEN", raising=False)
23 monkeypatch.setenv("CMDOP_API_KEY", "platform-only")
24 assert ClientConfig.resolve().token is None

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected