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

Method test_env_unity_cli_no_pretty

tests/test_output.py:59–62  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 assert resolve_output_mode() is OutputMode.PLAIN
58
59 def test_env_unity_cli_no_pretty(self) -> None:
60 env = {k: v for k, v in os.environ.items() if k not in ("UNITY_CLI_JSON", "UNITY_CLI_NO_PRETTY", "NO_COLOR")}
61 with patch.dict(os.environ, {**env, "UNITY_CLI_NO_PRETTY": "1"}, clear=True):
62 assert resolve_output_mode() is OutputMode.PLAIN
63
64 def test_env_no_color(self) -> None:
65 env = {k: v for k, v in os.environ.items() if k not in ("UNITY_CLI_JSON", "UNITY_CLI_NO_PRETTY", "NO_COLOR")}

Callers

nothing calls this directly

Calls 1

resolve_output_modeFunction · 0.90

Tested by

no test coverage detected