Skip to content

Commit

Permalink
Dev: unittests: Adjust unit test for previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
liangxin1300 committed Jan 22, 2025
1 parent 3b80ac8 commit 0b84ca9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/unittests/test_report_collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,9 @@ def test_collect_qdevice_info(self, mock_service, mock_quorum, mock_qdevice, moc
@mock.patch("crmsh.report.collect.lsof_cluster_fs_device")
@mock.patch("crmsh.report.collect.dump_D_process")
@mock.patch("crmsh.report.collect.ShellUtils")
def test_collect_cluster_fs_info(self, mock_run, mock_dump, mock_lsof, mock_cluster, mock_debug, mock_real_path, mock_str2file, mock_error):
@mock.patch("shutil.which")
def test_collect_cluster_fs_info(self, mock_which, mock_run, mock_dump, mock_lsof, mock_cluster, mock_debug, mock_real_path, mock_str2file, mock_error):
mock_which.return_value = True
mock_run_inst = mock.Mock()
mock_run.return_value = mock_run_inst
mock_run_inst.get_stdout_stderr.side_effect = [
Expand Down

0 comments on commit 0b84ca9

Please sign in to comment.