auto-sync: 2026-05-18 16:20:29

This commit is contained in:
cfdaily
2026-05-18 16:20:29 +08:00
parent b095b689d1
commit 879e476622
+6 -2
View File
@@ -844,14 +844,18 @@ class TestE10FullChain:
resp = client.post(f"/api/projects/{pid}/tasks", json={
"id": dep_id,
"title": "依赖任务",
"status": "blocked",
"depends_on": [child_ids[0]],
})
assert resp.status_code == 200
# 4. 完成 setup 子任务
# 4. 手动把依赖任务设为 blockedAPI create 默认 pending
db_path = data_root / pid / "blackboard.db"
bb = Blackboard(db_path)
bb.update_task_status(dep_id, "claimed", agent="test")
bb.update_task_status(dep_id, "working", agent="test")
bb.update_task_status(dep_id, "blocked", agent="test")
# 5. 完成 setup 子任务
for s in ["claimed", "working", "review", "done"]:
bb.update_task_status(child_ids[0], s, agent="test")