From 697de725fb4eefd4c062749a798d69b92a67c914 Mon Sep 17 00:00:00 2001 From: AramJonghu Date: Tue, 26 May 2026 18:31:07 +0200 Subject: [PATCH] change test to expect stdout --- cli/tests/test_shell.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cli/tests/test_shell.py b/cli/tests/test_shell.py index 1763247..9dd8de2 100644 --- a/cli/tests/test_shell.py +++ b/cli/tests/test_shell.py @@ -62,8 +62,9 @@ class TestStart: class TestShow: @patch("zshell.subcommands.shell.subprocess.run") def test_show_runs_ipc_show(self, mock_run): - mock_run.return_value = CompletedProcess([], 0, b"", b"target visibilities\n") - invoke("show") + mock_run.return_value = CompletedProcess([], 0, b"target visibilities\n", b"") + result = invoke("show") + assert "target visibilities" in result.output mock_run.assert_called_once_with(["qs", "-c", "zshell", "ipc", "show"], capture_output=True)