Skip to content

Commit

Permalink
Update loop vars to be less confusing
Browse files Browse the repository at this point in the history
  • Loading branch information
vsedmik committed Jun 11, 2024
1 parent 2ae351d commit 0b16fc0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/foreman/api/test_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -1850,11 +1850,11 @@ def test_positive_synchronize_docker_repo_with_included_tags(self, repo_options,
[
{
'content_type': 'docker',
'docker_upstream_name': repo['upstream_name'],
'docker_upstream_name': item['upstream_name'],
'name': gen_string('alpha'),
'url': constants.PULP_CONTAINER_REGISTRY_HUB,
}
for repo in LABELLED_REPOS
for item in LABELLED_REPOS
]
),
indirect=True,
Expand Down
6 changes: 3 additions & 3 deletions tests/upgrades/test_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,17 +412,17 @@ def test_pre_container_repo_sync(
:expectedresults: Container repositories are synced and ready for upgrade.
"""
repos = dict()
for model in LABELLED_REPOS:
for item in LABELLED_REPOS:
repo = target_sat.api.Repository(
content_type='docker',
docker_upstream_name=model['upstream_name'],
docker_upstream_name=item['upstream_name'],
product=module_product,
url=PULP_CONTAINER_REGISTRY_HUB,
).create()
repo.sync()
repo = repo.read()
assert repo.content_counts['docker_manifest'] > 0
repos[model['upstream_name']] = repo.id
repos[item['upstream_name']] = repo.id
save_test_data(repos)

@pytest.mark.post_upgrade(depend_on=test_pre_container_repo_sync)
Expand Down

0 comments on commit 0b16fc0

Please sign in to comment.