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