test: 修复端到端管道运行器和 Layer B IndexError - Closes #14
CI / test (pull_request) Successful in 7s

- run_pipeline.py: 修复 subprocess env 传递、parsed_path 检测、Unicode 编码
- test_main_health.py: 修复 _is_functional_section 空章节名 IndexError
- 端到端测试管道: doc_parser → ir_generation(4 steps) → acceptance tests
- 测试发现问题汇总至 dev issue #15
This commit is contained in:
2026-05-31 17:28:26 +08:00
parent febf4ba019
commit a2fabcc7a6
2 changed files with 21 additions and 14 deletions
+2
View File
@@ -95,6 +95,8 @@ def _is_functional_section(section_name: str) -> bool:
return False
# Documents with only a title (no section number) — check for functional keywords
sec_num = _section_number(section_name)
if not sec_num:
return False
if "." not in sec_num and not sec_num[0].isdigit():
func_keywords = ["策略", "规则", "功能", "限制", "流程", "配置", "场景",
"约束", "条件", "方案", "逻辑", "处理", "机制", "禁止"]