docstr: Tests that an ImportError is raised in import_local_settings
  if there is no airflow_local_settings module on the syspath.
docstr_tok: ["Tests","that","an","ImportError","is","raised","in","import_local_settings","if","there","is","no","airflow_local_settings","module","on","the","syspath","."]
code: def test_import_local_settings_without_syspath(self, log_mock):
      """
      Tests that an ImportError is raised in import_local_settings
      if there is no airflow_local_settings module on the syspath.
      """
      from airflow import settings
  
      settings.import_local_settings()
      log_mock.assert_called_once_with(
          "No airflow_local_settings to import.", exc_info=True
      )
  
imports: from __future__ import annotations
  import os
  import sys
  import tempfile
  from unittest import mock
  from unittest.mock import MagicMock, call, patch
  import pytest
  from airflow.exceptions import AirflowClusterPolicyViolation, AirflowConfigException
  from tests.test_utils.config import conf_vars
label_desc: Use image node_id 6 for calling the TestLocalSettings obj's underlying member method code with example usage: obj.test_import_local_settings_without_syspath(log_mock) without return types