(monkeypatch: pytest.MonkeyPatch)
| 55 | |
| 56 | |
| 57 | def 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 | |
| 66 | def test_fleet_and_timeout_from_env(monkeypatch: pytest.MonkeyPatch) -> None: |