From 548c4ea1259e89c3aa3c04f785b0957ab1a22d46 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 17 Nov 2026 08:16:54 +0100 Subject: [PATCH] Test that an unreadable round report is named --- bin/review_rules/test_review_folder.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/review_rules/test_review_folder.py b/bin/review_rules/test_review_folder.py index cef9d1d8..0e1cbb55 100644 --- a/bin/review_rules/test_review_folder.py +++ b/bin/review_rules/test_review_folder.py @@ -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)