docstr: Tests that an AirflowException is raised in case of error event
code: def test_gcs_upload_session_complete_sensor_execute_failure(
      self, context, soft_fail, expected_exception
  ):
      """Tests that an AirflowException is raised in case of error event"""
  
      self.OPERATOR.soft_fail = soft_fail
      with pytest.raises(expected_exception):
          self.OPERATOR.execute_complete(
              context=context,
              event={
                  "status": "error",
                  "message": "test failure message",
              },
          )
  
imports: from __future__ import annotations
  from datetime import datetime, timedelta, timezone
  from unittest import mock
  import pendulum
  import pytest
  from google.cloud.storage.retry import DEFAULT_RETRY
  from airflow.exceptions import AirflowProviderDeprecationWarning, AirflowSensorTimeout, AirflowSkipException, TaskDeferred
  from airflow.models.dag import DAG, AirflowException
  from airflow.providers.google.cloud.sensors.gcs import GCSObjectExistenceAsyncSensor, GCSObjectExistenceSensor, GCSObjectsWithPrefixExistenceSensor, GCSObjectUpdateSensor, GCSUploadSessionCompleteSensor, ts_function
  from airflow.providers.google.cloud.triggers.gcs import GCSBlobTrigger, GCSCheckBlobUpdateTimeTrigger, GCSPrefixBlobTrigger, GCSUploadSessionTrigger
label_desc: Use image node_id 2 for calling the TestGCSUploadSessionCompleteAsyncSensor obj's underlying member method code with example usage: obj.test_gcs_upload_session_complete_sensor_execute_failure(context, soft_fail, expected_exception) without return types