Test that an unreadable round report is named

This commit is contained in:
2026-11-17 08:16:54 +01:00
parent 7c4bef6332
commit 548c4ea125
+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)