Answer architecture round 5: give record_scoring's moved Mean its own path, and take pending_fall from a paired entry alone

This commit is contained in:
2026-10-09 11:40:13 +02:00
parent 6a8bbcfff9
commit 885396370a
6 changed files with 121 additions and 31 deletions
+6 -1
View File
@@ -319,6 +319,8 @@ class LarvReviewTool(unittest.TestCase):
self.assertIn("\n\nRatchet: the paired ruling counts as worse", (self.checkout / "docs" / "comprehension-history.md").read_text())
self.assertTrue(self.run_tool("needs-scoring-run", "2").stdout.startswith("No scoring run due.\nStill standing: Ratchet:"))
again = self.run_tool("record-scoring", self.seats_file(f"PR #2 at {self.start}\n" + seats))
self.assertIn("already a scoring run; record a paired ruling first", again.stderr)
same = self.run_tool("record-ruling", self.seats_file(f"PR #3 at {self.start}, against {self.start}\n\nMid A: {said('same', 'worse')}{place}Inherited architect: {said('same', 'worse')}{place}"))
self.assertIn("Fell: Locality.", same.stdout, same.stderr)
stands = self.run_tool("record-scoring", self.seats_file(f"PR #2 at {self.start}\n" + seats.replace("Locality 6.5", "Locality 7")))
@@ -338,7 +340,10 @@ class LarvReviewTool(unittest.TestCase):
self.assertIn("name the item IDs the chunk ships", uncalled.stderr)
due = self.run_tool("record-scoring", self.seats_file(f"PR #3 at {self.start}\n" + seats), "1")
self.assertEqual(due.returncode, 0, due.stderr)
self.assertIn("Floor: Locality 6.50, Self-sufficiency 6.50 under the floor of 7.0 block the merge, as the chunk leaves release 0.1.0 with no plan item.", due.stdout)
self.assertIn("\nItem IDs read: 1.\nFloor: Locality 6.50, Self-sufficiency 6.50 under the floor of 7.0 block the merge, as the chunk leaves release 0.1.0 with no plan item.\n", due.stdout)
swapped = self.run_tool("record-scoring", "1", self.seats_file(f"PR #3 at {self.start}\n" + seats))
self.assertEqual(swapped.returncode, 1)
self.assertIn("not /", swapped.stderr)
text = (self.checkout / "docs" / "comprehension-history.md").read_text()
self.assertIn("| Mean | 7.00 | 6.50 | 7.00 | 6.50 | 7.00 |", text)
self.assertIn("Inherited architect, would restructure first:", text)