Skip to content

Commit

Permalink
Update the test command for test_ssdhealth in show_test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
roger530-ho authored and PJHsieh committed Sep 19, 2024
1 parent e96e5d7 commit 238b2a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/show_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ def test_ssdhealth(self, mock_popen, mock_run_command):
print(result.exit_code)
print(result.output)
assert result.exit_code == 0
mock_popen.assert_called_once_with('lsblk -o NAME,TYPE -p | grep disk')
mock_popen.assert_called_once_with("lsblk -l -o NAME,TYPE,MOUNTPOINT -p | grep -w '/host'")
mock_run_command.assert_called_once_with(['sudo', 'ssdutil', '-d', '/dev/sda', '-v', '-e'], display_cmd=True)

@patch('utilities_common.cli.run_command')
Expand Down

0 comments on commit 238b2a2

Please sign in to comment.