Skip to content

Commit

Permalink
fix wrong expected error
Browse files Browse the repository at this point in the history
  • Loading branch information
Frosty2500 committed Dec 27, 2024
1 parent a4728f1 commit 979d50a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compliance_tool/test/test_compliance_check_aasx.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ 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("is not a valid ECMA376-2 (OPC) file", manager.format_step(0, verbose_level=1))
# we should expect a FileNotFound error here since the file does not exist and that is the first error
# aasx.py will throw if you try to open a file that does not exist.
self.assertIn("No such file or directory:", 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
Expand Down

0 comments on commit 979d50a

Please sign in to comment.