docstr: Test SlackHook success connection.
docstr_tok: ["Test","SlackHook","success","connection","."]
code: def test_hook_connection_success(
      self, mock_webclient_cls, response_data
  ):
      """Test SlackHook success connection."""
      mock_webclient = mock_webclient_cls.return_value
      mock_webclient_call = mock_webclient.api_call
      mock_webclient_call.return_value = SlackResponse(
          status_code=200,
          data=response_data,
          # Mock other mandatory SlackResponse arguments
          **{
              ma: mock.MagicMock
              for ma in (
                  "client",
                  "http_verb",
                  "api_url",
                  "req_args",
                  "headers",
              )
          },
      )
      hook = SlackHook(slack_conn_id=SLACK_API_DEFAULT_CONN_ID)
      conn_test = hook.test_connection()
      mock_webclient_call.assert_called_once_with("auth.test")
      assert conn_test[0]
  
imports: from __future__ import annotations
  import json
  import os
  from typing import Any
  from unittest import mock
  from unittest.mock import patch
  import pytest
  from slack_sdk.errors import SlackApiError
  from slack_sdk.http_retry.builtin_handlers import ConnectionErrorRetryHandler, RateLimitErrorRetryHandler
  from slack_sdk.web.slack_response import SlackResponse
  from airflow.exceptions import AirflowNotFoundException
  from airflow.models.connection import Connection
  from airflow.providers.slack.hooks.slack import SlackHook
label_desc: Use image node_id 7 for calling the TestSlackHook obj's underlying member method code with example usage: obj.test_hook_connection_success(mock_webclient_cls, response_data) without return types