class_docstr: Test the angle generation utility functions.
class_docstr_tok: ["Test","the","angle","generation","utility","functions","."]
docstr: Test that 'cache_dir' not being set fails.
docstr_tok: ["Test","that","'cache_dir","'","not","being","set","fails","."]
code: def test_no_cache_dir_fails(self, tmp_path):
      """Test that 'cache_dir' not being set fails."""
      from satpy.modifiers.angles import (
          _get_sensor_angles_from_sat_pos,
          get_angles,
      )
  
      data = _get_angle_test_data()
      with pytest.raises(RuntimeError), satpy.config.set(
          cache_lonlats=True, cache_sensor_angles=True, cache_dir=None
      ):
          get_angles(data)
      with pytest.raises(RuntimeError), satpy.config.set(
          cache_lonlats=True, cache_sensor_angles=True, cache_dir=None
      ):
          _get_sensor_angles_from_sat_pos.cache_clear()
  
imports: import contextlib
  import warnings
  from copy import deepcopy
  from datetime import datetime, timedelta
  from glob import glob
  from typing import Optional, Union
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  import xarray
  from pyresample.geometry import AreaDefinition, StackedAreaDefinition
  import satpy
  from satpy.utils import PerformanceWarning
label_desc: Use image node_id 10 for calling the TestAngleGeneration obj's underlying member method code with example usage: obj.test_no_cache_dir_fails(tmp_path) without return types