Pin the closure source in the export rows (32.9 point 1)

This commit is contained in:
ai-bot committed 2026-10-25 17:57:34 +00:00
1 parent efab6d10af
commit 526675dce9
1 file changed
+8 -4
+8 -4
View File
@@ -1810,13 +1810,17 @@ class DatabaseInitializationTests(unittest.TestCase):
self.assertEqual(len(rows), 1) self.assertEqual(len(rows), 1)
closed = rows[0]["closed_alerts"] closed = rows[0]["closed_alerts"]
# Both closures are listed, in the order they were written, with the code, # Both closures are listed, in the order they were written, with the
# the action and the date. # source of the alert, the code, the action and the date. The source is
# what tells the key form and the software form of one code apart
# (sections 27, 32.8 point 6 and 32.9 point 1).
self.assertRegex( self.assertRegex(
closed, r"^key_unavailable: rotate \(\d{4}-\d{2}-\d{2}\)" closed,
r"^Key 1: SeedSigner — key_unavailable: rotate \(\d{4}-\d{2}-\d{2}\)",
) )
self.assertRegex( self.assertRegex(
closed, r"software_incompatible: remove_software \(\d{4}-\d{2}-\d{2}\)$" closed,
r"Sparrow Wallet — software_incompatible: remove_software \(\d{4}-\d{2}-\d{2}\)$",
) )
def test_invalid_status_and_duplicate_key_numbers_are_rejected(self): def test_invalid_status_and_duplicate_key_numbers_are_rejected(self):