MCPcopy Create free account
hub / github.com/commitizen-tools/commitizen / test_env_merged_with_os_environ

Method test_env_merged_with_os_environ

tests/test_cmd.py:119–125  ·  view source on GitHub ↗
(self, monkeypatch)

Source from the content-addressed store, hash-verified

117 assert result.return_code == 0
118
119 def test_env_merged_with_os_environ(self, monkeypatch):
120 monkeypatch.setenv("CZ_EXISTING_VAR", "fromenv")
121 result = cmd.run(
122 ["python", "-c", "import os; print(os.environ['CZ_EXISTING_VAR'])"],
123 env={"CZ_EXTRA_VAR": "extra"},
124 )
125 assert "fromenv" in result.out
126
127 def test_empty_stdout_and_stderr(self):
128 result = cmd.run(["python", "-c", '"pass"'])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected