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

Method test_empty_stdout_and_stderr

tests/test_cmd.py:127–132  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

125 assert "fromenv" in result.out
126
127 def test_empty_stdout_and_stderr(self):
128 result = cmd.run(["python", "-c", '"pass"'])
129 assert result.out == ""
130 assert result.err == ""
131 assert result.stdout == b""
132 assert result.stderr == b""
133
134 def test_no_env_uses_os_environ(self, monkeypatch):
135 monkeypatch.setenv("CZ_NO_ENV_TEST", "inherited")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected