docstr: Tests that if __all__ is specified in airflow_local_settings,
  only module attributes specified within are imported.
docstr_tok: ["Tests","that","if","__all__","is","specified","in","airflow_local_settings",",","only","module","attributes","specified","within","are","imported","."]
code: def test_import_with_dunder_all_not_specified(self):
      """
      Tests that if __all__ is specified in airflow_local_settings,
      only module attributes specified within are imported.
      """
      with SettingsContext(
          SETTINGS_FILE_POLICY_WITH_DUNDER_ALL, "airflow_local_settings"
      ):
          from airflow import settings
  
          settings.import_local_settings()
  
          with pytest.raises(AttributeError):
              settings.not_policy()
  
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 4 for calling the TestLocalSettings obj's underlying member method code with example usage: obj.test_import_with_dunder_all_not_specified() without return types