chore: 服务端品牌与行业残留更名清零(HESUPIPE/DB名/redis字段)

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-09-29 18:29:07 +08:00
parent 528b81b192
commit f0af1cfe8e
12 changed files with 24 additions and 28 deletions
+3 -3
View File
@@ -132,7 +132,7 @@ def test_no_contact_never_emails_and_marks_stuck(async_db, monkeypatch):
# D8: interested+无联系方式 → 不发邮件,upsert Evaluation 卡单记录
(manager, conv), sent = _setup(async_db, monkeypatch,
ai=_mk_ai({}, evaluate=INTERESTED))
for text in ("hi", "kenya", "20k budget", "byd tang"):
for text in ("hi", "kenya", "20k budget", "pe100 pipe"):
asyncio.run(_send(manager, conv.session_id, text))
assert sent == []
@@ -263,7 +263,7 @@ def test_oscillation_does_not_burn_correction_quota(async_db, monkeypatch):
ai = FakeAI(extract=seq)
(manager, conv), sent = _setup(async_db, monkeypatch, ai=ai)
texts = ["my whatsapp is +8613800138000", "my whatsapp is +8613800138004",
"什么车好", "再说", "还有吗", "18325698745"]
"哪种管好", "再说", "还有吗", "18325698745"]
for t in texts:
asyncio.run(_send(manager, conv.session_id, t))
kinds = [s[0] for s in sent]
@@ -464,7 +464,7 @@ def test_evaluation_upsert_keeps_flags_and_intent(async_db, monkeypatch):
def test_reminder_boundary_redline_on_price_question():
text = ConversationManager._build_context_reminder(
{}, "how much is the BYD Tang?", [])
{}, "how much is the DN800 pipe?", [])
assert "职能边界" in text and "禁止" in text