checkpoint: 提交当前工作区代码(同义词配置初版 + 既有流程改动)
- 新增 inq_synonym 表、62组同义词种子与智能体只读接口 - Python 同义词加载/归一化与 1板/2箱 机读 - 同步当前分支既有协作、报价识别、陆运等改动
This commit is contained in:
@@ -89,6 +89,32 @@ class HttpLedgerParseTests(unittest.TestCase):
|
||||
self.assertEqual(body["workOrderNo"], "WO202609220015")
|
||||
self.assertEqual(body["quote"]["total"], "17100")
|
||||
|
||||
def test_product_quote_carries_sender_for_handler_column(self) -> None:
|
||||
"""报价人要入主账:后台处理人只显示真报价的人,不显示整组被拉进群的产品。"""
|
||||
fake = _FakeLedgerClient()
|
||||
out = HttpLedger(client=fake).upsert_product_quote(
|
||||
work_order_no="WO202611230005",
|
||||
quote={"total": "5500", "currency": "USD"},
|
||||
to_status="已报价",
|
||||
sender_id="prod_ma",
|
||||
)
|
||||
self.assertTrue(out.get("ok"))
|
||||
method, path, body = fake.calls[0]
|
||||
self.assertEqual(method, "POST")
|
||||
self.assertEqual(path, "/inquiry/agent/ticket/upsertProductQuote")
|
||||
self.assertEqual(body["senderWecomId"], "prod_ma")
|
||||
self.assertEqual(body["quote"]["total"], "5500")
|
||||
|
||||
def test_product_quote_without_sender_omits_key(self) -> None:
|
||||
"""系统自动价没有 sender,不伪造互动人。"""
|
||||
fake = _FakeLedgerClient()
|
||||
HttpLedger(client=fake).upsert_product_quote(
|
||||
work_order_no="WO202611230006",
|
||||
quote={"total": "1200", "currency": "USD"},
|
||||
)
|
||||
_method, _path, body = fake.calls[0]
|
||||
self.assertNotIn("senderWecomId", body)
|
||||
|
||||
def test_void_quote_files_posts_agent_path(self) -> None:
|
||||
fake = _FakeLedgerClient()
|
||||
out = HttpLedger(client=fake).void_quote_files(work_order_no="WO202609220001")
|
||||
|
||||
Reference in New Issue
Block a user