docstr: Exception occurs in poke function should not be ignored.
docstr_tok: ["Exception","occurs","in","poke","function","should","not","be","ignored","."]
code: def test_poke_exception(
      self, mock_session_send, create_task_of_operator
  ):
      """
      Exception occurs in poke function should not be ignored.
      """
      response = requests.Response()
      response.status_code = 200
      mock_session_send.return_value = response
  
      def resp_check(_):
          raise AirflowException("AirflowException raised here!")
  
      task = create_task_of_operator(
          HttpSensor,
          dag_id="http_sensor_poke_exception",
          task_id="http_sensor_poke_exception",
          http_conn_id="http_default",
          endpoint="",
          request_params={},
          response_check=resp_check,
          timeout=5,
          poke_interval=1,
      )
      with pytest.raises(
          AirflowException, match="AirflowException raised here!"
      ):
          task.execute(context={})
  
imports: from __future__ import annotations
  from unittest import mock
  from unittest.mock import patch
  import pytest
  import requests
  from airflow.exceptions import AirflowException, AirflowSensorTimeout, AirflowSkipException
  from airflow.models.dag import DAG
  from airflow.providers.http.operators.http import HttpOperator
  from airflow.providers.http.sensors.http import HttpSensor
  from airflow.utils.timezone import datetime
label_desc: Use image node_id 1 for calling the TestHttpSensor obj's underlying member method code with example usage: obj.test_poke_exception(mock_session_send, create_task_of_operator) without return types