feat(telegram): enforce canonical product routing

This commit is contained in:
ogt
2026-07-14 19:14:11 +08:00
parent 1431abba54
commit 180e708444
54 changed files with 7746 additions and 740 deletions

View File

@@ -179,8 +179,9 @@ class TestSREGroupCutover:
)
assert match, "找不到 send_approval_card 函式"
fn_body = match.group(0)
assert '"chat_id": target_chat_id' in fn_body
assert "target_chat_id = self.alert_chat_id" in fn_body
assert "_LEGACY_NOTIFICATION_TYPE_KEY" in fn_body
assert 'notification_type or "UNKNOWN"' in fn_body
assert '"chat_id": target_chat_id' not in fn_body
assert '"chat_id": self.chat_id' not in fn_body
def test_send_approval_card_does_not_double_send_group(self):