Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joka921 committed Dec 23, 2024
1 parent 6ef67ed commit 1cf6d16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/qlever/commands/test_status_execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def test_execute_processes_found(self, mock_process_iter, mock_show_process_info
call(mock_process3, args.cmdline_regex, show_heading=False),
]
mock_show_process_info.assert_has_calls(expected_calls, any_order=False)
self.assertIsNone(result)
self.assertTrue(result)

@patch("qlever.util.show_process_info")
@patch("psutil.process_iter")
Expand Down Expand Up @@ -107,7 +107,7 @@ def test_execute_no_processes_found(
# since there are no processes
mock_show_process_info.assert_not_called()

self.assertIsNone(result)
self.assertTrue(result)

# Verify the correct output was printed
self.assertIn("No processes found", captured_output.getvalue())
Expand All @@ -128,4 +128,4 @@ def test_execute_show_action_description(self, mock_show):
only_show=args.show,
)

self.assertFalse(result)
self.assertTrue(result)

0 comments on commit 1cf6d16

Please sign in to comment.