From 87a7e056ac5e2a4a5e53eae325ee048fb257b8b0 Mon Sep 17 00:00:00 2001 From: skeating Date: Thu, 9 Nov 2023 13:21:44 +0000 Subject: [PATCH] Fixed final test fails --- deviser/pytest_files/test_examples/test_examples.py | 2 ++ deviser/validation/ValidationXMLFiles.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/deviser/pytest_files/test_examples/test_examples.py b/deviser/pytest_files/test_examples/test_examples.py index 41b83c0aa..32750af98 100644 --- a/deviser/pytest_files/test_examples/test_examples.py +++ b/deviser/pytest_files/test_examples/test_examples.py @@ -54,6 +54,8 @@ def test_specific_xml_fail(name, start, stop, number): """ assert 0 == ret.run_specific_xml_fail_tests(name, start, stop, number) + +######################################################################################################### # fails # @pytest.mark.parametrize('name', [ # ('base_class'), diff --git a/deviser/validation/ValidationXMLFiles.py b/deviser/validation/ValidationXMLFiles.py index fc4b4fc15..4cff41f71 100644 --- a/deviser/validation/ValidationXMLFiles.py +++ b/deviser/validation/ValidationXMLFiles.py @@ -67,6 +67,7 @@ def __init__(self, lib_object, verbose=False): self.pkg_version = lib_object['pkg_version'] self.pkg_ref = 'NA' self.reqd_status = lib_object['required'] + self.full_package_command = lib_object['name'] + ' Package' self.tree = query.create_object_tree(lib_object, False) @@ -127,7 +128,7 @@ def determine_rules(self): rules = ValidationRulesGeneral\ .ValidationRulesGeneral(self.fullname, number, self.package, self.pkg_ref, self.level, self.version, - self.pkg_version, self.reqd_status) + self.pkg_version, self.reqd_status, self.full_package_command) rules.determine_rules() self.class_rules += rules.rules number = self.offset + 20200