Skip to content

Commit e9415e0

Browse files
authored
Merge pull request #41 from xcp-ng/fix-style
Fix indentation of the code that broke tests
2 parents c0778b0 + 9270a25 commit e9415e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: tests/test_smartctl.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@
8181
@mock.patch("smartctl.run_command", autospec=True)
8282
@mock.patch("smartctl._list_disks", autospec=True)
8383
class TestSmartctl:
84-
def test_smartctl_error(self, _list_disks, run_command, fs):
84+
def test_smartctl_error(self, _list_disks, run_command, fs):
8585
_list_disks.side_effect = Exception("Error!")
8686

8787
with pytest.raises(XenAPIPlugin.Failure) as e:
8888
get_health(None, None)
8989
assert e.value.params[0] == '-1'
9090
assert e.value.params[1] == 'Error!'
91-
91+
9292
def test_smartctl_information(self, _list_disks, run_command, fs):
9393
_list_disks.return_value = ["/dev/sda"]
9494
run_command.return_value = {"stdout": SMARTCTL_INFO}

0 commit comments

Comments
 (0)