fix: check the event schema under the given root

validate_schemas.py read install-events.schema.json from the real tree while a test pointed ROOT at a scratch one, and test_schema_semantic_gate.py called unittest.main() before its last class.
This commit is contained in:
Abdessamad Derraz committed 2026-10-23 19:23:59 +02:00
1 parent b34a6058f7
commit 7143d20ef8
2 files changed
+6 -6

No files matched your search

+4 -4
View File
@@ -94,10 +94,6 @@ class SemanticManifestValidation(unittest.TestCase):
self.assertIn("total_files does not equal len(files)", errors[0])
if __name__ == "__main__":
unittest.main()
try:
import jsonschema
except ImportError:
@@ -122,3 +118,7 @@ class DataRootIsKeyedBySystem(unittest.TestCase):
self.assertTrue(self._errors({"amiga": {"path": "x", "source_ref": "y"}}))
self.assertTrue(self._errors({"windows": {"path": "%APPDATA%/X"}}))
self.assertTrue(self._errors({}))
if __name__ == "__main__":
unittest.main()