Test that an unreadable round report is named
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user