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_async_execute_should_should_throw_exception(self):
      """Tests that an AirflowException is raised in case of error event"""
  
      op = CloudSQLExportInstanceOperator(
          task_id="test_task",
          instance=INSTANCE_NAME,
          body=EXPORT_BODY,
          deferrable=True,
      )
      with pytest.raises(AirflowException):
          op.execute_complete(
              context=mock.MagicMock(),
              event={
                  "status": "error",
                  "message": "test failure message",
              },
          )
  
imports: from __future__ import annotations
  import os
  from unittest import mock
  import pytest
  from airflow.exceptions import AirflowException, TaskDeferred
  from airflow.models import Connection
  from airflow.providers.google.cloud.operators.cloud_sql import CloudSQLCloneInstanceOperator, CloudSQLCreateInstanceDatabaseOperator, CloudSQLCreateInstanceOperator, CloudSQLDeleteInstanceDatabaseOperator, CloudSQLDeleteInstanceOperator, CloudSQLExecuteQueryOperator, CloudSQLExportInstanceOperator, CloudSQLImportInstanceOperator, CloudSQLInstancePatchOperator, CloudSQLPatchInstanceDatabaseOperator
  from airflow.providers.google.cloud.triggers.cloud_sql import CloudSQLExportTrigger
  from airflow.providers.google.common.consts import GOOGLE_DEFAULT_DEFERRABLE_METHOD_NAME
label_desc: Use image node_id 29 for calling the TestCloudSql obj's underlying member method code with example usage: obj.test_async_execute_should_should_throw_exception() without return types