Archived
fixes on paralelism for plans
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user