diff options
| author | godosa <godosa@godosa.eu> | 2026-10-07 07:59:35 +0200 |
|---|---|---|
| committer | godosa <godosa@godosa.eu> | 2026-10-07 07:59:35 +0200 |
| commit | ec091e7df0ef0804d12cc49d09b2f88c19cc6534 (patch) | |
| tree | 08efa6e688228260ea7ab61766f86c68c6ed07a6 | |
| parent | 5efcac492566e965820be757556bfdc1f17a2475 (diff) | |
| download | workflow-ec091e7df0ef0804d12cc49d09b2f88c19cc6534.tar.gz workflow-ec091e7df0ef0804d12cc49d09b2f88c19cc6534.zip | |
tests: note/status refusal exits non-zero
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JEAjUkQRrCYX5MZhWxdtj2
| -rw-r--r-- | tests/test_cli.py | 9 |
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"), |
