diff --git a/repos/system_upgrade/common/actors/cloud/checkrhui/actor.py b/repos/system_upgrade/common/actors/cloud/checkrhui/actor.py index 826db5fc7d..593e73e51f 100644 --- a/repos/system_upgrade/common/actors/cloud/checkrhui/actor.py +++ b/repos/system_upgrade/common/actors/cloud/checkrhui/actor.py @@ -1,12 +1,5 @@ -import os - -from leapp import reporting from leapp.actors import Actor from leapp.libraries.actor import checkrhui as checkrhui_lib -from leapp.libraries.common import rhsm, rhui -from leapp.libraries.common.config.version import get_source_major_version -from leapp.libraries.common.rpms import has_package -from leapp.libraries.stdlib import api from leapp.models import ( CopyFile, DNFPluginTask, @@ -17,7 +10,7 @@ RpmTransactionTasks, TargetUserSpacePreupgradeTasks ) -from leapp.reporting import create_report, Report +from leapp.reporting import Report from leapp.tags import FactsPhaseTag, IPUWorkflowTag diff --git a/repos/system_upgrade/common/actors/cloud/checkrhui/tests/component_test_checkrhui.py b/repos/system_upgrade/common/actors/cloud/checkrhui/tests/component_test_checkrhui.py index bcfc1e6bff..e2bf482a8f 100644 --- a/repos/system_upgrade/common/actors/cloud/checkrhui/tests/component_test_checkrhui.py +++ b/repos/system_upgrade/common/actors/cloud/checkrhui/tests/component_test_checkrhui.py @@ -39,6 +39,7 @@ def mk_pkg(name): return RPM(name=name, version='0.1', release='1.sm01', epoch='1', packager=RH_PACKAGER, arch='noarch', pgpsig='RSA/SHA256, Mon 01 Jan 1970 00:00:00 AM -03, Key ID 199e2f91fd431d51') + def mk_setup_info(): pre_tasks = TargetRHUIPreInstallTasks() post_tasks = TargetRHUIPostInstallTasks() @@ -50,7 +51,7 @@ def iter_known_rhui_setups(): for provider_variant, variant_description in providers.items(): src_clients = variant_description['src_pkg'] if isinstance(src_clients, str): - src_clients = {src_clients,} + src_clients = {src_clients, } yield provider_variant, upgrade_path, src_clients