Parcourir la source

test(mse): allow A1 or A2 as active DDA in evidence unit

Co-authored-by: Cursor <cursoragent@cursor.com>
root il y a 3 mois
Parent
commit
1ffd26224f
1 fichiers modifiés avec 7 ajouts et 1 suppressions
  1. 7 1
      tests/unit/test_a1_a2_evidence.py

+ 7 - 1
tests/unit/test_a1_a2_evidence.py

@@ -25,7 +25,13 @@ class A1A2EvidenceTests(unittest.TestCase):
     def test_a2_archive_and_active_nonempty(self) -> None:
     def test_a2_archive_and_active_nonempty(self) -> None:
         self.assertGreater(A2.stat().st_size, 100)
         self.assertGreater(A2.stat().st_size, 100)
         self.assertGreater(ACTIVE.stat().st_size, 100)
         self.assertGreater(ACTIVE.stat().st_size, 100)
-        self.assertIn("Scheme A2", ACTIVE.read_text(encoding="utf-8"))
+        active = ACTIVE.read_text(encoding="utf-8")
+        # Active may be A2 production or A1 fair-TD candidate; both must be real modules.
+        self.assertIn("module door_shared_dda_scheduler", active)
+        self.assertTrue(
+            ("Scheme A2" in active) or ("Scheme A1" in active) or ("RECONSTRUCTED" in active),
+            "active DDA must identify A1 or A2",
+        )
 
 
     def test_comparison_notes_reconstructed_when_empty_fixed(self) -> None:
     def test_comparison_notes_reconstructed_when_empty_fixed(self) -> None:
         # Keep comparison file honest if present.
         # Keep comparison file honest if present.