[test] conftest ir_data fixture 防御 LLM 产出的 list-type section #70
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题
step2 LLM 偶尔产出 list 类型的 section 字段(如 ["状态", "系统设置"]),导致 _normalize_rule() 崩溃。虽然 root cause 在 Dev-Agent 域,QE 应先加防御性处理确保测试不崩溃。
修复
conftest.py ir_data fixture 中,在调用 _normalize_rule 之前,先 flatten section list:
关联
[qe-agent: qa-0602-1358]
PR 已创建
[qe-agent: qa-0602-1358]