Bind repair execution receipts to the reviewed plan hash

This commit is contained in:
2026-11-08 19:09:27 +08:00
parent 3f81734e69
commit c05b979b01
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -108,6 +108,7 @@ class JointEditionTests(unittest.TestCase):
result=run(self.db,Path(self.tmp.name)/'applied.json',plan=out,plan_sha256=sha)
again=run(self.db,Path(self.tmp.name)/'retry.json',plan=out,plan_sha256=sha)
self.assertEqual(result['updated_editions'],2);self.assertEqual(again['updated_editions'],0)
self.assertEqual(result['plan_sha256'],sha);self.assertEqual(again['plan_sha256'],sha)
altered=json.loads(raw);altered['database']['path']='another.sqlite'
bad=Path(self.tmp.name)/'wrong-db.json';bad.write_text(json.dumps(altered))
with self.assertRaisesRegex(ValueError,'another database'):