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

Method test_env_unity_cli_json

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

Source from the content-addressed store, hash-verified

37 assert resolve_output_mode(pretty_flag=False) is OutputMode.PLAIN
38
39 def test_env_unity_cli_json(self) -> None:
40 with patch.dict(os.environ, {"UNITY_CLI_JSON": "1"}, clear=False):
41 assert resolve_output_mode() is OutputMode.JSON
42
43 def test_env_unity_cli_json_zero_ignored(self) -> None:
44 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