11add5
From dcb68a7011d3b34ee8ca16fb9babe7278f943a16 Mon Sep 17 00:00:00 2001
11add5
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= <thrnciar@redhat.com>
11add5
Date: Wed, 5 Jun 2024 12:00:18 +0200
11add5
Subject: [PATCH] Fix test for get_role_list
11add5
11add5
---
11add5
 test/integration/test_interface.py | 10 ++++------
11add5
 1 file changed, 4 insertions(+), 6 deletions(-)
11add5
11add5
diff --git a/test/integration/test_interface.py b/test/integration/test_interface.py
11add5
index 457ea71..fecbc61 100644
11add5
--- a/test/integration/test_interface.py
11add5
+++ b/test/integration/test_interface.py
11add5
@@ -444,11 +444,8 @@ def test_get_role_list(project_fixtures, skipif_pre_ansible211):
11add5
     containing our test role.
11add5
     """
11add5
     pdir = str(project_fixtures / 'music' / 'project')
11add5
-    expected_role = {
11add5
-        "collection": "",
11add5
-        "entry_points": {
11add5
-            "main": "The main entry point for the Into_The_Mystic role."
11add5
-        }
11add5
+    expected = {
11add5
+        "main": "The main entry point for the Into_The_Mystic role."
11add5
     }
11add5
 
11add5
     resp, _ = get_role_list(playbook_dir=pdir)
11add5
@@ -457,7 +454,8 @@ def test_get_role_list(project_fixtures, skipif_pre_ansible211):
11add5
     # So that tests can work locally, where multiple roles might be returned,
11add5
     # we check for this single role.
11add5
     assert 'Into_The_Mystic' in resp
11add5
-    assert resp['Into_The_Mystic'] == expected_role
11add5
+    assert 'entry_points' in resp['Into_The_Mystic']
11add5
+    assert resp['Into_The_Mystic']['entry_points'] == expected
11add5
 
11add5
 
11add5
 @pytest.mark.test_all_runtimes
11add5
-- 
11add5
2.44.0
11add5