aboutsummaryrefslogtreecommitdiffziptar.gz
path: root/tests
diff options
context:
space:
mode:
authorgodosa <godosa@godosa.eu>2026-10-07 19:56:05 +0200
committergodosa <godosa@godosa.eu>2026-10-07 19:56:05 +0200
commite6f7306c472a7589d08f4098e476d54bffd1f761 (patch)
tree51e5bd20eca5221cf159df65a130b829853792a5 /tests
parentc537f4a809a564ecdab0380bcb356018f79a6900 (diff)
downloadworkflow-e6f7306c472a7589d08f4098e476d54bffd1f761.tar.gz
workflow-e6f7306c472a7589d08f4098e476d54bffd1f761.zip
orch post: strip 'result:' prefix
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JEAjUkQRrCYX5MZhWxdtj2
Diffstat (limited to 'tests')
-rw-r--r--tests/test_orch.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_orch.py b/tests/test_orch.py
index 45ade24..313007f 100644
--- a/tests/test_orch.py
+++ b/tests/test_orch.py
@@ -237,6 +237,18 @@ class OrchTest(Cli):
self.assertNotIn("post-check-red", self.log())
self.assertIn(" t-big sliced ", self.log())
+ def test_post_result_prefix_stripped(self):
+ self.orch("pick", "fast")
+ out = self.orch("post", "t-one", "fast", "--result", "result: handback unclear spec")
+ self.assertTrue(out.startswith("post: t-one handback\n"), out)
+ self.assertNotIn("stop lane", out)
+
+ def test_post_result_prefix_done(self):
+ self.orch("pick", "fast")
+ self.worker_done()
+ out = self.orch("post", "t-one", "fast", "--result", "result: done", "--no-pick")
+ self.assertTrue(out.startswith("post: t-one done"), out)
+
def test_post_model_raised_continues(self):
self.orch("pick", "fast")
self.wf("set", "t-one", "--model", "opus")