From e219ee3d941e3375ff7aafd834d0b8a6b7f02abc Mon Sep 17 00:00:00 2001 From: Cole Higgins Date: Tue, 4 Jun 2024 10:18:21 -0400 Subject: [PATCH] addressing comments --- tests/foreman/api/test_reporttemplates.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/foreman/api/test_reporttemplates.py b/tests/foreman/api/test_reporttemplates.py index 53b56d0ec1d..da167d8c8f0 100644 --- a/tests/foreman/api/test_reporttemplates.py +++ b/tests/foreman/api/test_reporttemplates.py @@ -715,11 +715,7 @@ def test_positive_generate_job_report(setup_content, module_target_sat, content_ 'input_values': {"job_id": job["id"]}, } ) - assert ( - res[0]['Host'] == content_hosts[0].hostname and res[1]['Host'] == content_hosts[1].hostname - ) or ( - res[0]['Host'] == content_hosts[1].hostname and res[1]['Host'] == content_hosts[0].hostname - ) + assert {i['Host'] for i in res} == {i.hostname for i in content_hosts} assert '/root' in res[0]['stdout'] assert '/root' in res[1]['stdout']