fixes on paralelism for plans

This commit is contained in:
2026-08-11 16:23:36 +01:00
parent 8a317d6e80
commit 658d58e864
2 changed files with 33 additions and 0 deletions
+13
View File
@@ -194,6 +194,19 @@ class CliTest(unittest.TestCase):
for plan in plans:
self.assertTrue((discussion / "workflow" / "plans" / plan["file"]).exists())
def test_validate_rejects_orphan_workflow_artifact(self) -> None:
with TempDir() as root:
main(["--root", str(root), "init"])
self.assertEqual(main(["--root", str(root), "start", "orphan-demo", "Orphan Demo"]), 0)
orphan = root / "discussion" / "workflow" / "plans" / "PLN-9999-orphan.md"
orphan.write_text("---\nid: PLN-9999\n---\n# Orphan\n", encoding="utf-8")
stderr = io.StringIO()
with contextlib.redirect_stderr(stderr):
self.assertEqual(main(["--root", str(root), "validate"]), 2)
self.assertIn("orphan workflow artifact", stderr.getvalue())
def test_housekeep_with_lesson_removes_workflow_artifacts(self) -> None:
with TempDir() as root:
main(["--root", str(root), "init"])