diff --git a/tests/test_smartctl.py b/tests/test_smartctl.py index c3998be..c5ad469 100644 --- a/tests/test_smartctl.py +++ b/tests/test_smartctl.py @@ -79,10 +79,10 @@ }""" @mock.patch("smartctl.run_command", autospec=True) -@mock.patch("smartctl._list_disks", autospec=True) +@mock.patch("smartctl._list_devices", autospec=True) class TestSmartctl: - def test_smartctl_error(self, _list_disks, run_command, fs): - _list_disks.side_effect = Exception("Error!") + def test_smartctl_error(self, _list_devices, run_command, fs): + _list_devices.side_effect = Exception("Error!") with pytest.raises(XenAPIPlugin.Failure) as e: get_health(None, None)