fix: 事实卡质量审查修复(测试大小写/标题/等字说明/单位)
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -43,9 +43,9 @@ def test_facts_absent_from_extractor_prompt():
|
||||
def test_facts_no_auto_words():
|
||||
# 建材化红线: 事实卡不得残留汽车项目词汇
|
||||
# (只查 COMPANY_FACTS——SYSTEM_PROMPT 属 Task 3,不在本测试管辖)
|
||||
for word in ("BYD", "Hesu Auto", "Toyota"):
|
||||
assert word not in COMPANY_FACTS, word
|
||||
for word in ("vehicle", "sedan", "suv"):
|
||||
# 全部 lowercase 匹配: 大小写混杂的 "BYD"/"bYd" 一网打尽,不分策略
|
||||
for word in ("byd", "hesu auto", "toyota", "vehicle", "sedan", "suv",
|
||||
"zeeker", "nissan", "geely"):
|
||||
assert word not in COMPANY_FACTS.lower(), word
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user