Skip to content

Commit

Permalink
Merge pull request #41 from xcp-ng/fix-style
Browse files Browse the repository at this point in the history
Fix indentation of the code that broke tests
  • Loading branch information
stormi authored Sep 25, 2023
2 parents c0778b0 + 9270a25 commit e9415e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_smartctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@
@mock.patch("smartctl.run_command", autospec=True)
@mock.patch("smartctl._list_disks", autospec=True)
class TestSmartctl:
def test_smartctl_error(self, _list_disks, run_command, fs):
def test_smartctl_error(self, _list_disks, run_command, fs):
_list_disks.side_effect = Exception("Error!")

with pytest.raises(XenAPIPlugin.Failure) as e:
get_health(None, None)
assert e.value.params[0] == '-1'
assert e.value.params[1] == 'Error!'

def test_smartctl_information(self, _list_disks, run_command, fs):
_list_disks.return_value = ["/dev/sda"]
run_command.return_value = {"stdout": SMARTCTL_INFO}
Expand Down

0 comments on commit e9415e0

Please sign in to comment.