Have larv-review round-title print a round commit's counts from its report, and rule-hook refuse a title that differs #580

Merged
lilleman merged 10 commits from item-327 into main 2026-11-17 08:54:57 +01:00
Showing only changes of commit 548c4ea125 - Show all commits
+7
View File
@@ -33,3 +33,10 @@ class RoundReport(unittest.TestCase):
missing = findings_in(standing_report(pathlib.Path(temp), "prose", 2))
self.assertIsInstance(missing, Failure)
self.assertEqual(missing.reason, f"no report at {temp}/prose-round-2.md")
def test_names_a_report_it_cannot_read(self):
with tempfile.TemporaryDirectory() as temp:
(pathlib.Path(temp) / "prose-round-1.md").mkdir()
unread = findings_in(standing_report(pathlib.Path(temp), "prose", 1))
self.assertIsInstance(unread, Failure)
self.assertTrue(unread.reason.startswith(f"could not read {temp}/prose-round-1.md: "), unread.reason)