From 601916044a74f253c4f35fda4885cd155c9bda2e Mon Sep 17 00:00:00 2001 From: s-heppner Date: Sat, 9 Mar 2024 05:38:19 +0100 Subject: [PATCH] test_compliance_check_aasx: Fix outdated test-case Previously, the BaSyx-Python AASX reader returned a "File not found" exception, when an AASX-file could not be found. However, now it appears that it returns `is not a valid ECMA376-2 (OPC) file` instead. We update the unittest to reflect this change. --- test/test_compliance_check_aasx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_compliance_check_aasx.py b/test/test_compliance_check_aasx.py index 438f0bb..78d9e04 100644 --- a/test/test_compliance_check_aasx.py +++ b/test/test_compliance_check_aasx.py @@ -20,7 +20,7 @@ def test_check_deserialization(self) -> None: compliance_tool.check_deserialization(file_path_1, manager) self.assertEqual(2, len(manager.steps)) self.assertEqual(Status.FAILED, manager.steps[0].status) - self.assertIn("No such file or directory", manager.format_step(0, verbose_level=1)) + self.assertIn("is not a valid ECMA376-2 (OPC) file", manager.format_step(0, verbose_level=1)) self.assertEqual(Status.NOT_EXECUTED, manager.steps[1].status) # Todo add more tests for checking wrong aasx files