code: def test_operator_fails_no_formula(self, wait_mock):
      wait_mock.return_value = True
      with pytest.raises(AirflowException) as ctx:
          self.operator2_no_formula.execute(None)
      assert (
          str(ctx.value)
          == "The auto_scale_formula is required when enable_auto_scale is set"
      )
  
file_path: airflow/tests/providers/microsoft/azure/operators/test_batch.py
imports: from __future__ import annotations
  import json
  from unittest import mock
  import pytest
  from airflow.exceptions import AirflowException
  from airflow.models import Connection
  from airflow.providers.microsoft.azure.hooks.batch import AzureBatchHook
  from airflow.providers.microsoft.azure.operators.batch import AzureBatchOperator
label_desc: Use image node_id 7 for calling the TestAzureBatchOperator obj's underlying member method code with example usage: obj.test_operator_fails_no_formula(wait_mock) without return types