Skip to content

Commit

Permalink
Make test parametrization more readable
Browse files Browse the repository at this point in the history
[yum] [docker]
vs
[2] [1]
  • Loading branch information
dosas committed Apr 4, 2024
1 parent 9fc762a commit e6bbdf6
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 e6bbdf6

Please sign in to comment.