Package versioned OBW schema documentation (by Codex)

This commit is contained in:
Codex committed 2026-10-17 22:52:11 +02:00
1 parent 8326a23274
commit 7eff8a34f8
2 files changed
+12

No files matched your search

+9
View File
@@ -35,6 +35,15 @@ class PackageAllowlistTests(unittest.TestCase):
target.parent.mkdir(parents=True, exist_ok=True)
target.write_text('synthetic license placeholder')
package.validate(root, False)
schema = root / 'docs/formats/obw/schema/1.0/manifest.json'
schema.parent.mkdir(parents=True)
schema.write_text('{"type":"object"}')
package.validate(root, False)
unexpected_json = root / 'docs/world.json'
unexpected_json.write_text('{"synthetic":true}')
with self.assertRaises(RuntimeError):
package.validate(root, False)
unexpected_json.unlink()
for name in ['game.fbm', 'BMH.EXE', 'unit_tests', 'secret.txt']:
(root / name).write_text('synthetic refusal fixture')
with self.assertRaises(RuntimeError):