feat(sre): close provider and telegram automation receipts
This commit is contained in:
@@ -555,8 +555,9 @@ async def test_send_request_mirrors_direct_ai_alert_card_to_agent99(monkeypatch)
|
||||
"inbox_triggered": True,
|
||||
}
|
||||
|
||||
async def fake_outbound_message(**kwargs) -> None: # type: ignore[no-untyped-def]
|
||||
async def fake_outbound_message(**kwargs) -> bool: # type: ignore[no-untyped-def]
|
||||
outbound_receipts.append(kwargs)
|
||||
return True
|
||||
|
||||
monkeypatch.setattr(TelegramGateway, "api_url", property(lambda _self: "https://telegram.test/botx"))
|
||||
monkeypatch.setattr(
|
||||
@@ -1871,6 +1872,7 @@ async def test_send_request_strips_awooop_callback_metadata_before_telegram_api(
|
||||
"provider_message_id": provider_message_id,
|
||||
"source_envelope_extra": source_envelope_extra,
|
||||
}
|
||||
return True
|
||||
|
||||
gateway._http_client = FakeClient()
|
||||
monkeypatch.setattr(gateway, "_mirror_outbound_message", fake_mirror_outbound_message)
|
||||
|
||||
Reference in New Issue
Block a user