class_docstr: Main test class for the LI L2 reader.
class_docstr_tok: ["Main","test","class","for","the","LI","L2","reader","."]
docstr: Test get_first_valid_variable from li reader if the variable is not found.
docstr_tok: ["Test","get_first_valid_variable","from","li","reader","if","the","variable","is","not","found","."]
code: def test_get_first_valid_variable_not_found(self, filetype_infos):
      """Test get_first_valid_variable from li reader if the variable is not found."""
      filename_info = {
          "start_time": "20101112131415",
          "end_time": "20101112131416",
      }
  
      handler = LIL2NCFileHandler(
          "filename",
          filename_info,
          extract_filetype_info(filetype_infos, "li_l2_lef_nc"),
      )
  
      with pytest.raises(KeyError):
          handler.get_first_valid_variable(
              ["dummy/path", "data/test/test_var"]
          )
  
imports: import os
  from datetime import datetime
  from unittest import mock
  import numpy
  import pytest
  import xarray
  from pyproj import Proj
  from satpy._config import config_search_paths
  from satpy.readers.li_base_nc import LINCFileHandler
  from satpy.readers.li_l2_nc import LI_GRID_SHAPE, LIL2NCFileHandler
  from satpy.readers.yaml_reader import load_yaml_configs
  from satpy.tests.reader_tests._li_test_utils import FakeLIFileHandlerBase, extract_filetype_info, get_product_schema, products_dict
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 15 for calling the TestLIL2 obj's underlying member method code with example usage: obj.test_get_first_valid_variable_not_found(filetype_infos) without return types