(self, monkeypatch)
| 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"']) |
nothing calls this directly
no outgoing calls
no test coverage detected