🔧 chore(playbook): split sync_templates into sections

This commit is contained in:
csh
2026-01-27 08:49:40 +08:00
parent 278750e3c9
commit 73d5c261b1
7 changed files with 263 additions and 113 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ tests/
├── test_gitattributes_modes.py # gitattr_mode 行为测试
├── test_plan_progress_cli.py # plan_progress CLI 测试
├── test_superpowers_list_sync.py # superpowers 列表一致性测试
├── test_sync_templates_placeholders.py # 占位符替换测试
├── test_sync_templates_placeholders.py # 占位符替换测试sync_rules/sync_standards
├── test_toml_edge_cases.py # TOML 解析边界测试
├── templates/ # 模板验证测试
│ ├── validate_python_templates.sh # Python 模板验证
@@ -64,7 +64,7 @@ sh tests/integration/check_doc_links.sh
- CLI 参数解析与帮助信息
- TOML 配置解析与动作顺序
- vendor/sync/install 等基础动作落地
- vendor/sync_rules/sync_memory_bank/sync_prompts/sync_standards 等基础动作落地
### 2. 模板验证测试 (templates/)
+2 -2
View File
@@ -65,13 +65,13 @@ langs = ["tsl"]
self.assertEqual(result.returncode, 0)
self.assertTrue(snapshot.is_file())
def test_sync_templates_creates_memory_bank(self):
def test_sync_memory_bank_creates_memory_bank(self):
with tempfile.TemporaryDirectory() as tmp_dir:
config_body = f"""
[playbook]
project_root = "{tmp_dir}"
[sync_templates]
[sync_memory_bank]
project_name = "Demo"
"""
config_path = Path(tmp_dir) / "playbook.toml"
+1 -3
View File
@@ -23,9 +23,7 @@ class SyncTemplatesPlaceholdersTests(unittest.TestCase):
[playbook]
project_root = \"{tmp_dir}\"
[sync_templates]
project_name = \"Demo\"
full = true
[sync_rules]
[sync_standards]
langs = [\"cpp\", \"tsl\"]