docstr: Tests that an AirflowException is raised in case of error event
docstr_tok: ["Tests","that","an","AirflowException","is","raised","in","case","of","error","event"]
code: def test_execute_failure_in_deferrable_mode(
      self, deferrable_batch_sensor: BatchSensor
  ):
      """Tests that an AirflowException is raised in case of error event"""
  
      with pytest.raises(AirflowException):
          deferrable_batch_sensor.execute_complete(
              context={}, event={"status": "failure"}
          )
  
imports: from __future__ import annotations
  from unittest import mock
  import pytest
  from airflow.exceptions import AirflowException, AirflowSkipException, TaskDeferred
  from airflow.providers.amazon.aws.hooks.batch_client import BatchClientHook
  from airflow.providers.amazon.aws.sensors.batch import BatchComputeEnvironmentSensor, BatchJobQueueSensor, BatchSensor
  from airflow.providers.amazon.aws.triggers.batch import BatchJobTrigger
label_desc: Use image node_id 6 for calling the TestBatchSensor obj's underlying member method code with example usage: obj.test_execute_failure_in_deferrable_mode(deferrable_batch_sensor) without return types