MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / test_valid_env_var

Method test_valid_env_var

tests/test_relay_logging.py:43–45  ·  view source on GitHub ↗
(self, monkeypatch: pytest.MonkeyPatch, env_value: str, expected: int)

Source from the content-addressed store, hash-verified

41 ],
42 )
43 def test_valid_env_var(self, monkeypatch: pytest.MonkeyPatch, env_value: str, expected: int) -> None:
44 monkeypatch.setenv("UNITY_CLI_LOG", env_value)
45 assert _resolve_log_level(debug_flag=False) == expected
46
47 @pytest.mark.parametrize("env_value", ["INVALID", "BASIC_FORMAT", "Logger", ""])
48 def test_invalid_env_var_falls_back(self, monkeypatch: pytest.MonkeyPatch, env_value: str) -> None:

Callers

nothing calls this directly

Calls 1

_resolve_log_levelFunction · 0.90

Tested by

no test coverage detected