Skip to content

Commit

Permalink
[6.15.z] Make test parametrization more readable (#14642)
Browse files Browse the repository at this point in the history
Co-authored-by: dosas <[email protected]>
  • Loading branch information
Satellite-QE and dosas authored Apr 5, 2024
1 parent ef73fa1 commit befb450
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tests/foreman/api/test_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,14 +485,13 @@ def test_negative_update_to_invalid_download_policy(self, repo, target_sat):
@pytest.mark.tier1
@pytest.mark.parametrize(
'repo_options',
**datafactory.parametrized(
[
{'content_type': content_type, 'download_policy': 'on_demand'}
for content_type in constants.REPO_TYPE
if content_type not in ['yum', 'docker']
]
),
[
{'content_type': content_type, 'download_policy': 'on_demand'}
for content_type in constants.REPO_TYPE
if content_type not in ['yum', 'docker']
],
indirect=True,
ids=lambda x: x['content_type'],
)
def test_negative_create_non_yum_with_download_policy(self, repo_options, target_sat):
"""Verify that non-YUM repositories cannot be created with
Expand Down

0 comments on commit befb450

Please sign in to comment.