change test to expect stdout
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 11s
Python / lint-format (pull_request) Successful in 19s
Python / test (pull_request) Failing after 48s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m47s

This commit is contained in:
2026-05-26 18:31:07 +02:00
parent f8a10698ea
commit 697de725fb
+3 -2
View File
@@ -62,8 +62,9 @@ class TestStart:
class TestShow: class TestShow:
@patch("zshell.subcommands.shell.subprocess.run") @patch("zshell.subcommands.shell.subprocess.run")
def test_show_runs_ipc_show(self, mock_run): def test_show_runs_ipc_show(self, mock_run):
mock_run.return_value = CompletedProcess([], 0, b"", b"target visibilities\n") mock_run.return_value = CompletedProcess([], 0, b"target visibilities\n", b"")
invoke("show") result = invoke("show")
assert "target visibilities" in result.output
mock_run.assert_called_once_with(["qs", "-c", "zshell", "ipc", "show"], capture_output=True) mock_run.assert_called_once_with(["qs", "-c", "zshell", "ipc", "show"], capture_output=True)