Skip to content

Commit

Permalink
precommit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ColeHiggins2 committed Nov 27, 2023
1 parent 2866f5f commit 9332f2d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/foreman/api/test_repositories.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -268,7 +266,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'],
Expand All @@ -287,9 +285,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'

0 comments on commit 9332f2d

Please sign in to comment.