Preserve failed-run checkpoint when snapshot receipts are invalid
Metadata integrity checks / metadata (push) Successful in 2m44s

This commit is contained in:
2026-11-15 22:47:27 +08:00
parent 8b7bc6d871
commit 93f00d1a64
2 changed files with 11 additions and 6 deletions
+2
View File
@@ -96,3 +96,5 @@ class Rss2026Tests(unittest.TestCase):
receipts=[*self.fixture['receipts'],{**self.fixture['receipts'][0],'file':'../outside'}]
(self.snap/'receipts.json').write_text(json.dumps(receipts))
with self.assertRaisesRegex(ValueError,'Unsafe'):rss.collect(self.root/'unsafe',snapshots=self.snap)
self.assertTrue((self.root/'unsafe/failed.json').exists())
self.assertFalse((self.root/'unsafe/collection-report.json').exists())