def METHOD_NAME(
    mock_post: mock.MagicMock,
    persisted_resolution: Resolution,  # noqa: F811
    caplog: Any,
):
    with mock_settings(None):
        with environment_variables(_TEST_ENV_VARS):  # type: ignore
            with caplog.at_level(logging.DEBUG):
                slack_publisher = SlackPublisher()
                slack_publisher.publish(event=persisted_resolution)
                mock_post.assert_not_called()
                assert_logs_captured(
                    caplog, "The received resolution event is not a failure"
                )