class_docstr: Main test class for the LI L2 reader.
class_docstr_tok: ["Main","test","class","for","the","LI","L2","reader","."]
docstr: Test settings retrieved from filename.
docstr_tok: ["Test","settings","retrieved","from","filename","."]
code: def test_filename_infos(self, filetype_infos):
      """Test settings retrieved from filename."""
      filename_info = {
          "start_time": "20101112131415",
          "end_time": "20101112131416",
      }
  
      handler = LIL2NCFileHandler(
          "filename",
          filename_info,
          extract_filetype_info(filetype_infos, "li_l2_af_nc"),
      )
  
      # Start and end time should come from filename info:
      assert handler.start_time == "20101112131415"
      assert handler.end_time == "20101112131416"
  
      # internal vars should be initialized:
      assert handler.search_paths is not None
      assert handler.dataset_infos is not None
  
      # calling register_available_datasets again should not change things (early return)
      ds_infos_current = handler.dataset_infos.copy()
      handler.register_available_datasets()
      assert handler.dataset_infos == ds_infos_current
  
      # Should have some datasets:
      assert len(handler.provided_datasets) > 0
  
      # Sensor names should be just 'li'
      assert handler.sensor_names == {"li"}
  
      # check product type:
      assert handler.product_type == "2-AF"
  
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 12 for calling the TestLIL2 obj's underlying member method code with example usage: obj.test_filename_infos(filetype_infos) without return types