Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/unittests/config/test_cc_rh_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def test_update_repos_disable_with_none(
mock.call(["repos", "--enable=repo1"])
]

def test_full_registration(self, m_sman_cli, caplog):
def test_full_registration(self, m_sman_cli, caplog, mocker):
"""
Registration with auto_attach, service_level, adding pools,
enabling and disabling yum repos and setting release_version
Expand Down Expand Up @@ -147,7 +147,7 @@ def test_full_registration(self, m_sman_cli, caplog):
# to avoid deleting the actual cache files
# (triggered by the presence of the release_version key)
# on the host running the tests
mock.patch("shutil.rmtree")
mocker.patch("shutil.rmtree")

cc_rh_subscription.handle(NAME, self.CONFIG_FULL, None, [])
assert m_sman_cli.call_count == 10
Expand Down
Loading