Skip to content

Commit

Permalink
fixup! checkrhui: add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mhecko committed Jun 15, 2023
1 parent d752450 commit e00708c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ class CheckRHUI(Actor):
tags = (FactsPhaseTag, IPUWorkflowTag)

def process(self):
checkrhui_lib.process()
checkrhui_lib.process()
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def test_produce_rhui_info_for_provider(monkeypatch):
assert not setup_info.postinstall_tasks.files_to_copy


def produce_rpms_to_install_into_target():
def test_produce_rpms_to_install_into_target(monkeypatch):
map_entry = {
'src_pkg': 'src_pkg',
'target_pkg': 'target_pkg',
Expand All @@ -211,7 +211,7 @@ def produce_rpms_to_install_into_target():

monkeypatch.setattr(api, 'produce', produce_mocked())

checkrhui_lib.produce_rpms_to_install_into_target_userspace(map_entry)
checkrhui_lib.produce_rpms_to_install_into_target(map_entry)

assert len(api.produce.model_instances) == 2
userspace_tasks, target_rpm_tasks = api.produce.model_instances[0], api.produce.model_instances[1]
Expand Down

0 comments on commit e00708c

Please sign in to comment.