Skip to content

Commit 795e5c7

Browse files
authored
Another unittests fix
1 parent 2d638d0 commit 795e5c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_cli_monitor_basic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_echo_command(self):
1616
"""Verify 'echo Hello' runs without errors and prints 'Hello'."""
1717
cmd = [
1818
"python", "cli_monitor.py",
19-
"--command", "echo Hello",
19+
"--command", "echo", "Hello",
2020
"--timer", "2"
2121
]
2222
result = subprocess.run(cmd, capture_output=True, text=True, shell=True)
@@ -27,7 +27,7 @@ def test_invalid_frequency(self):
2727
"""Frequency outside allowed range should cause an error exit."""
2828
cmd = [
2929
"python", "cli_monitor.py",
30-
"--command", "echo Hello",
30+
"--command", "echo", "Hello",
3131
"--frequency", "999999999" # way too large
3232
]
3333
result = subprocess.run(cmd, capture_output=True, text=True, shell=True)
@@ -49,7 +49,7 @@ def test_command_with_quotes(self):
4949
"""Ensure commands with quotes are properly handled."""
5050
cmd = [
5151
"python", "cli_monitor.py",
52-
"--command", "echo Hello World",
52+
"--command", "echo", "Hello World",
5353
"--timer", "2"
5454
]
5555
result = subprocess.run(cmd, capture_output=True, text=True, shell=True)

0 commit comments

Comments
 (0)