Test that a refusal names the plan's file and the bad --release

This commit is contained in:
2026-11-14 16:09:55 +01:00
parent a040b1e882
commit e4ac0dead0
2 changed files with 10 additions and 1 deletions
+5
View File
@@ -83,6 +83,11 @@ class FilePlan(FilePlanContract):
assert isinstance(written, stores.Written), written
self.assertIn("item 10 ", written.notes[0])
def test_an_id_it_holds_no_item_for_fails_naming_the_file(self):
store = self.new_store()
missing = Failure(f"{self.folder / 'todo.md'} holds no item 99")
self.assertEqual((store.edit(99, {"L": "1"}, None), store.finish(99)), (missing, missing))
def test_a_missing_file_fails_naming_it(self):
store = self.new_store()
(self.folder / "todo.md").unlink()