Skip to content

Commit

Permalink
Update unit_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
r0x0d committed May 31, 2024
1 parent 6fb29a1 commit d7c7937
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions convert2rhel/unit_tests/backup/subscription_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ def test_restore_auto_attach_not_enabled(self, auto_attach_subscription, monkeyp
auto_attach_subscription.restore()
assert subscription.remove_subscription.call_count == 0

def test_already_enabled(self, auto_attach_subscription, monkeypatch):
monkeypatch.setattr(subscription, "auto_attach_subscription", mock.Mock())
auto_attach_subscription.enabled = True

auto_attach_subscription.enable()

assert subscription.auto_attach_subscription.call_count == 0


class TestRestorableDisableRepositories:
@pytest.mark.parametrize(
Expand Down

0 comments on commit d7c7937

Please sign in to comment.