Test that a refusal names the plan's file and the bad --release
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user