From 526675dce98fdc3159ca010938f45f9718256aab Mon Sep 17 00:00:00 2001 From: ai-bot Date: Sun, 25 Oct 2026 17:57:34 +0000 Subject: [PATCH] Pin the closure source in the export rows (32.9 point 1) --- tests/test_database.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/test_database.py b/tests/test_database.py index 7569ccc..02d170b 100644 --- a/tests/test_database.py +++ b/tests/test_database.py @@ -1810,13 +1810,17 @@ class DatabaseInitializationTests(unittest.TestCase): self.assertEqual(len(rows), 1) closed = rows[0]["closed_alerts"] - # Both closures are listed, in the order they were written, with the code, - # the action and the date. + # Both closures are listed, in the order they were written, with the + # 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( - 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( - 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):