aboutsummaryrefslogtreecommitdiffziptar.gz
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cli.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_cli.py b/tests/test_cli.py
index 75737b4..2808242 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -490,6 +490,15 @@ class EditTest(Cli):
"- **t-one** [P1] (1h) (in progress: master): First thing. Do it.\n"
" - Steps: a\n - cause found\n Ref: DESIGN.md#terrain, docs/plan.md\n")
+ def test_note_refused_on_unknown_id_link_exits_nonzero(self):
+ err = self.fails("note", "t-one", "see [[t-no-such-id]]")
+ self.assertTrue(err.startswith("wf: refused: nothing written"), err)
+ self.assertEqual(self.tasks(), TASKS)
+
+ def test_status_refused_on_unknown_blocker_exits_nonzero(self):
+ err = self.fails("status", "t-two", "blocked", "t-no-such-id")
+ self.assertEqual(self.tasks(), TASKS)
+
def test_body(self):
self.ok("body", "t-one", stdin="- Steps: b\n- Done: c\n")
self.assertEqual(self.item("t-one"),