From 6934568c2923f8d4d49a6648549aa10a25f29683 Mon Sep 17 00:00:00 2001 From: Cole Higgins Date: Mon, 27 Nov 2023 16:06:59 -0500 Subject: [PATCH] precommit fix --- tests/foreman/api/test_repositories.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/tests/foreman/api/test_repositories.py b/tests/foreman/api/test_repositories.py index 4a2a209101d..18051c0c344 100644 --- a/tests/foreman/api/test_repositories.py +++ b/tests/foreman/api/test_repositories.py @@ -24,9 +24,7 @@ from robottelo import constants from robottelo.cli.base import CLIReturnCodeError from robottelo.config import settings -from robottelo.constants import DEFAULT_ARCHITECTURE -from robottelo.constants import MIRRORING_POLICIES -from robottelo.constants import REPOS +from robottelo.constants import DEFAULT_ARCHITECTURE, MIRRORING_POLICIES, REPOS from robottelo.utils.datafactory import parametrized @@ -267,7 +265,7 @@ def test_positive_sync_mulitple_large_repos(module_target_sat, module_entitlemen repo_names = ['rhel8_bos', 'rhel8_aps'] kickstart_names = ['rhel8_bos', 'rhel8_aps'] for name in repo_names: - rh_repo_id = module_target_sat.api_factory.enable_rhrepo_and_fetchid( + module_target_sat.api_factory.enable_rhrepo_and_fetchid( basearch=DEFAULT_ARCHITECTURE, org_id=module_entitlement_manifest_org.id, product=REPOS[name]['product'], @@ -286,9 +284,9 @@ def test_positive_sync_mulitple_large_repos(module_target_sat, module_entitlemen releasever=constants.REPOS['kickstart'][name]['version'], ) rh_repos = module_target_sat.api.Repository(id=rh_repo_id).read() - rh_products = module_target_sat.api.Product(id=rh_repos.product.id).read() - assert len(rh_products.repository) == 4 + rh_product = module_target_sat.api.Product(id=rh_repos.product.id).read() + assert len(rh_product.repository) == 4 res = module_target_sat.api.ProductBulkAction().sync( - data={'ids': [rh_products.id]}, timeout=2000 + data={'ids': [rh_product.id]}, timeout=2000 ) assert res['result'] == 'success'