We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c1f2bf commit 6748c2dCopy full SHA for 6748c2d
tests/sentry/notifications/notification_action/metric_alert_registry/test_slack_metric_alert_handler.py
@@ -105,7 +105,10 @@ def test_send_alert_via_np_sends_to_slack_channel(
105
mock_client_instance.chat_postMessage.assert_called_once()
106
call_kwargs = mock_client_instance.chat_postMessage.call_args.kwargs
107
assert call_kwargs["channel"] == "channel123"
108
- blocks = call_kwargs["blocks"]
+ assert call_kwargs["attachments"] is not None
109
+ attachments: list[Any] = call_kwargs["attachments"]
110
+ assert len(attachments) == 1
111
+ blocks: list[Any] = attachments[0]["blocks"]
112
assert len(blocks) >= 1
113
assert blocks[0]["type"] == "section"
114
assert blocks[0]["text"]["type"] == "mrkdwn"
0 commit comments