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

Function test_token_env_fallback

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

Source from the content-addressed store, hash-verified

27
28
29def test_token_env_fallback(monkeypatch: pytest.MonkeyPatch) -> None:
30 monkeypatch.setenv("CMDOP_TOKEN", "env-token")
31 assert ClientConfig.resolve().token == "env-token"
32
33
34def test_cmdop_token_wins_over_api_key(monkeypatch: pytest.MonkeyPatch) -> None:

Callers

nothing calls this directly

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected