test(telegram): accept silence action routing
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m30s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled

This commit is contained in:
Your Name
2026-07-18 12:44:19 +08:00
parent 0f675be12d
commit 299e01bfda

View File

@@ -150,9 +150,14 @@ async def test_converged_recurrence_does_not_mirror_to_private_chat(monkeypatch)
)
assert len(gateway.primary_messages) == 1
assert gateway.primary_messages[0]["route"] == {
route = gateway.primary_messages[0]["route"]
reply_markup = route.pop("reply_markup")
assert route == {
"product_id": "awoooi",
"signal_family": "incident_lifecycle",
"severity": "P1",
}
silence_button = reply_markup["inline_keyboard"][0][0]
assert silence_button["text"] == "🔕 靜默"
assert silence_button["callback_data"].startswith("silence:approval-1:")
assert gateway.private_messages == []