Skip to content

Commit

Permalink
Update test_changer.py
Browse files Browse the repository at this point in the history
Lint errors
  • Loading branch information
mcw-work authored Nov 22, 2023
1 parent 6edccb5 commit 2c5b486
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions landscape/client/package/tests/test_changer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1629,12 +1629,11 @@ def test_reboot_flag(self):
self.dbus_mock = patch(
"landscape.client.package.changer.dbus").start()
bus_object = Mock()

self.dbus_mock.SystemBus.return_value = bus_object

self.changer._run_reboot()

def check(_):
bus_object.get_object.assert_called_once()
bus_object.Reboot.assert_called_once()

bus_object.Reboot.assert_called_once()

Check warning on line 1639 in landscape/client/package/tests/test_changer.py

View check run for this annotation

Codecov / codecov/patch

landscape/client/package/tests/test_changer.py#L1638-L1639

Added lines #L1638 - L1639 were not covered by tests

0 comments on commit 2c5b486

Please sign in to comment.