satpy.tests.test_config module
Test objects and functions in the satpy.config module.
- class satpy.tests.test_config.TestBuiltinAreas(methodName='runTest')[source]
Bases:
TestCase
Test that the builtin areas are all valid.
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- _classSetupFailed = False
- _class_cleanups = []
- class satpy.tests.test_config.TestConfigObject[source]
Bases:
object
Test basic functionality of the central config object.
- class satpy.tests.test_config.TestPluginsConfigs[source]
Bases:
object
Test that plugins are working.
- test_get_plugin_configs(fake_composite_plugin_etc_path)[source]
Check that the plugin configs are looked for.
- test_load_entry_point_composite(fake_composite_plugin_etc_path)[source]
Test that composites can be loaded from plugin entry points.
- test_plugin_enhancements_generic_sensor(fake_enh_plugin_etc_path, sensor_name, exp_result)[source]
Test that enhancements from a plugin are available.
- test_plugin_reader_available_readers(fake_reader_plugin_etc_path)[source]
Test that readers can be loaded from plugin entry points.
- test_plugin_reader_configs(fake_reader_plugin_etc_path, specified_reader)[source]
Test that readers can be loaded from plugin entry points.
- satpy.tests.test_config._create_fake_importlib_files(module_paths: dict[str, Path]) Callable[[str], Path] [source]
- satpy.tests.test_config._create_fake_iter_entry_points(entry_points: dict[str, list[EntryPoint]]) Callable[[], dict[str, EntryPoint]] [source]
- satpy.tests.test_config._create_yamlbased_plugin(tmp_path: Path, component_type: str, yaml_name: str, yaml_func: Callable[[str], None]) Iterator[Path] [source]
- satpy.tests.test_config._get_entry_points_and_etc_paths(tmp_path: Path, entry_point_names: dict[str, list[str]]) tuple[Path, dict[str, list[EntryPoint]], dict[str, Path]] [source]
- satpy.tests.test_config.fake_composite_plugin_etc_path(tmp_path: Path) Iterator[Path] [source]
Create a fake plugin entry point with a fake compositor YAML configuration file.
- satpy.tests.test_config.fake_enh_plugin_etc_path(tmp_path: Path) Iterator[Path] [source]
Create a fake plugin entry point with a fake enhancement YAML configure files.
This creates a
fake_sensor.yaml
andgeneric.yaml
enhancement configuration.
- satpy.tests.test_config.fake_plugin_etc_path(tmp_path: Path, entry_point_names: dict[str, list[str]]) Iterator[Path] [source]
Create a fake satpy plugin entry point.
This mocks the necessary methods to trick Satpy into thinking a plugin package is installed and has made a satpy plugin available.
- satpy.tests.test_config.fake_reader_plugin_etc_path(tmp_path: Path) Iterator[Path] [source]
Create a fake plugin entry point with a fake reader YAML configuration file.