Skip to content

Commit

Permalink
Make test parametrization more readable (SatelliteQE#14569)
Browse files Browse the repository at this point in the history
  • Loading branch information
dosas authored and shweta83 committed Apr 10, 2024
1 parent e8c0fd6 commit 872ed05
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 872ed05

Please sign in to comment.