Skip to content

Commit

Permalink
Make test parametrization more readable (#14569)
Browse files Browse the repository at this point in the history
  • Loading branch information
dosas authored and ogajduse committed Apr 5, 2024
1 parent e6933b3 commit 9ebf041
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 != 'yum'
]
),
[
{'content_type': content_type, 'download_policy': 'on_demand'}
for content_type in constants.REPO_TYPE
if content_type != 'yum'
],
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 9ebf041

Please sign in to comment.