From f88e7d2a0a56e97f5d892bfa3873bc7eb4f93b47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Candice=20Bent=C3=A9jac?= Date: Fri, 7 Apr 2023 08:02:14 +0100 Subject: [PATCH] [tests] TemplatesVersion: Add message when compatibility assertion is raised If a compatibility issue is found and the assertion is raised, a message is now displayed to indicate which template (with its path) and which node (with its node type) caused the issue. --- tests/test_templatesVersion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_templatesVersion.py b/tests/test_templatesVersion.py index e27a41ce..796747e0 100644 --- a/tests/test_templatesVersion.py +++ b/tests/test_templatesVersion.py @@ -55,4 +55,4 @@ def test_templateVersions(): compatibilityIssue = CompatibilityIssue.DescriptionConflict break - assert compatibilityIssue is None + assert compatibilityIssue is None, "{} in {} for node {}".format(compatibilityIssue, path, nodeType)