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
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:
@@ -150,9 +150,14 @@ async def test_converged_recurrence_does_not_mirror_to_private_chat(monkeypatch)
|
|||||||
)
|
)
|
||||||
|
|
||||||
assert len(gateway.primary_messages) == 1
|
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",
|
"product_id": "awoooi",
|
||||||
"signal_family": "incident_lifecycle",
|
"signal_family": "incident_lifecycle",
|
||||||
"severity": "P1",
|
"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 == []
|
assert gateway.private_messages == []
|
||||||
|
|||||||
Reference in New Issue
Block a user