修复英国空运问题被通用空运关键词覆盖

This commit is contained in:
2026-10-30 18:50:00 +08:00
parent 9d07793a57
commit fd1ec32dd6
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -13,7 +13,9 @@ from logistics_chat import knowledge, pricing, tracking
class RuleTests(unittest.TestCase):
def test_specific_knowledge_wins_and_unknown_questions_have_no_match(self):
self.assertIn('22KG+', knowledge.search_knowledge('英国空运价格'))
for question in ('英国空运价格','英国空运多久','英国空运多少钱'):
self.assertIn('22KG+', knowledge.search_knowledge(question))
self.assertIn('21KG+', knowledge.search_knowledge('欧洲空运价格'))
self.assertIsNone(knowledge.search_knowledge('没有相关关键词的测试'))
def test_sea_tier_boundary_and_minimum(self):