docstr: Test check_query_output by passing query ids as params and mock get_request_url_header_params
  to raise airflow exception and mock with http error
docstr_tok: ["Test","check_query_output","by","passing","query","ids","as","params","and","mock","get_request_url_header_params","to","raise","airflow","exception","and","mock","with","http","error"]
code: def test_check_query_output_exception(
      self, mock_geturl_header_params, query_ids
  ):
      """
      Test check_query_output by passing query ids as params and mock get_request_url_header_params
      to raise airflow exception and mock with http error
      """
      req_id = uuid.uuid4()
      params = {"requestId": str(req_id), "page": 2, "pageSize": 10}
      mock_geturl_header_params.return_value = (
          HEADERS,
          params,
          "https://test/airflow/",
      )
      hook = SnowflakeSqlApiHook("mock_conn_id")
      with mock.patch.object(
          hook.log, "error"
      ), RequestsMock() as requests_mock:
          requests_mock.get(
              url="https://test/airflow/",
              json={"foo": "bar"},
              status=500,
          )
          with pytest.raises(
              AirflowException,
              match='Response: {"foo": "bar"}, Status Code: 500',
          ):
              hook.check_query_output(query_ids)
  
imports: from __future__ import annotations
  import unittest
  import uuid
  from typing import TYPE_CHECKING, Any
  from unittest import mock
  from unittest.mock import AsyncMock
  import pytest
  import requests
  from cryptography.hazmat.backends import default_backend
  from cryptography.hazmat.primitives import serialization
  from cryptography.hazmat.primitives.asymmetric import rsa
  from responses import RequestsMock
  from airflow.exceptions import AirflowException
  from airflow.models import Connection
  from airflow.providers.snowflake.hooks.snowflake_sql_api import SnowflakeSqlApiHook
label_desc: Use image node_id 4 for calling the TestSnowflakeSqlApiHook obj's underlying member method code with example usage: obj.test_check_query_output_exception(mock_geturl_header_params, query_ids) without return types