From 5791f2019fcd675aa985c8cbd4f416fb4522eb57 Mon Sep 17 00:00:00 2001 From: David Merkl Date: Tue, 17 Dec 2024 09:47:06 +0100 Subject: [PATCH] fix: Fix assertion in parser test --- tests/test_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_parser.py b/tests/test_parser.py index 9dae5be5..1891a451 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -264,7 +264,7 @@ def test_include_role_parsing_with_exclude_roles( if exclude_roles is not None: all_roles = get_all_roles([playbook_node]) role_names = list(map(lambda role_node: role_node.name, all_roles)) - assert exclude_roles not in role_names + assert all(exclude_role not in role_names for exclude_role in exclude_roles) @pytest.mark.parametrize("grapher_cli", [["include_role.yml"]], indirect=True)