We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1fc1ed commit 89a0638Copy full SHA for 89a0638
tests/_internal/subprocess/test_mixins.py
@@ -36,14 +36,10 @@ def test_run(
36
capsys: pytest.LogCaptureFixture,
37
):
38
process_mock = mock.Mock()
39
- attrs = {"communicate.return_value": ("output", "error"), "returncode": 0}
+ attrs = {"communicate.return_value": ("output", "error"), "returncode": 1}
40
process_mock.configure_mock(**attrs)
41
mock_subprocess_popen.return_value = process_mock
42
-
43
- print(f"args: {args}, args[1:]: {args[1:]}")
44
- cmd = args[0] if isinstance(args, list) else [args]
45
- print(f"cmd: {cmd}")
46
cmd = SubprocessCommand(*args, cwd=tmp_path, **kwargs)
47
response = cmd.Popen(**run_kwargs)
48
49
- assert response.returncode == 0
+ assert response.returncode == 1
0 commit comments