From 5ad4d39d7fe0c8535eb3af86f8a86556cce55139 Mon Sep 17 00:00:00 2001 From: dosas Date: Fri, 5 Apr 2024 14:12:33 +0200 Subject: [PATCH] Make test parametrization more readable (#14569) --- tests/foreman/api/test_repository.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/tests/foreman/api/test_repository.py b/tests/foreman/api/test_repository.py index 5ac276e194d..f42c33f86c7 100644 --- a/tests/foreman/api/test_repository.py +++ b/tests/foreman/api/test_repository.py @@ -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