落地海运私聊文字询价全流程,海运多项费用改走文本明细,避免企微卡片引用条截断。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -53,6 +53,24 @@ class QuoteTemplateMatchTests(unittest.TestCase):
|
||||
self.assertIsNone(hit)
|
||||
self.assertIn("IT运维", FAIL_MESSAGE)
|
||||
|
||||
def test_broken_bracket_keyword_still_hits_sea(self) -> None:
|
||||
hit = pick_quote_template(
|
||||
templates=[
|
||||
{
|
||||
"templateId": "s1",
|
||||
"name": "海运报价单模板",
|
||||
"bizType": "海运",
|
||||
"keywords": ["[海运,整柜,FCL]"],
|
||||
"isDefault": False,
|
||||
},
|
||||
],
|
||||
business_line="SEA",
|
||||
facts={"整柜或拼柜": "整柜", "目的港": "巴生西港"},
|
||||
)
|
||||
self.assertIsNotNone(hit)
|
||||
self.assertEqual(hit.match_type, "keyword")
|
||||
self.assertEqual(hit.name, "海运报价单模板")
|
||||
|
||||
def test_sea_ignored_for_air(self) -> None:
|
||||
hit = pick_quote_template(
|
||||
templates=[
|
||||
|
||||
Reference in New Issue
Block a user