docs: define three-project issue planning order (#1)

This commit is contained in:
QiuSW
2026-08-11 19:02:03 +08:00
parent 5f1bd9ec4c
commit 579b2ecafd
9 changed files with 106 additions and 2 deletions
+18
View File
@@ -115,6 +115,24 @@ class TaskTemplateTests(unittest.TestCase):
errors,
)
def test_task_template_requires_coordination_fields(self) -> None:
with tempfile.TemporaryDirectory() as directory:
root = Path(directory)
template = root / ".gitea" / "issue_template" / "task.md"
template.parent.mkdir(parents=True)
template.write_text("## 基本信息\n", encoding="utf-8")
errors: list[str] = []
check_task_template(errors, root)
self.assertIn(
"单元任务模板缺少:- 任务类型:单项目 / 协同",
errors,
)
self.assertIn("单元任务模板缺少:- 主 agent:", errors)
self.assertIn("单元任务模板缺少:## 协同接口", errors)
self.assertIn("单元任务模板缺少:- 生产者:", errors)
self.assertIn("单元任务模板缺少:- 消费者:", errors)
self.assertIn("单元任务模板缺少:- write_paths:", errors)
def test_task_template_requires_dependency_fields(self) -> None:
with tempfile.TemporaryDirectory() as directory:
root = Path(directory)