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