satpy.tests.scene_tests.test_load module
Unit tests for loading-related functionality in scene.py.
- class satpy.tests.scene_tests.test_load.TestBadLoading[source]
Bases:
object
Test the Scene object’s .load method with bad inputs.
- pytestmark = [Mark(name='usefixtures', args=('include_test_etc',), kwargs={})]
- class satpy.tests.scene_tests.test_load.TestLoadingComposites[source]
Bases:
object
Test the Scene object’s .load method for composites.
- pytestmark = [Mark(name='usefixtures', args=('include_test_etc',), kwargs={})]
- test_load_comp15()[source]
Test loading a composite whose prerequisites can’t be loaded.
Note that the prereq exists in the reader, but fails in loading.
- test_load_comp18()[source]
Test loading a composite that depends on an incompatible area modified dataset.
- test_load_comp18_2()[source]
Test loading a composite that depends on an incompatible area modified dataset.
Specifically a modified dataset where the modifier has optional dependencies.
- test_load_comp19()[source]
Test loading a composite that shares a dep with a dependency.
More importantly test that loading a dependency that depends on the same dependency as this composite (a sibling dependency) and that sibling dependency includes a modifier. This test makes sure that the Node in the dependency tree is the exact same node.
- test_load_dataset_after_composite2()[source]
Test load complex composite followed by other datasets.
- test_load_modified_with_load_kwarg()[source]
Test loading a modified dataset using the
Scene.load
keyword argument.
- test_load_multiple_resolutions()[source]
Test loading a dataset has multiple resolutions available with different resolutions.
- test_load_same_subcomposite()[source]
Test loading a composite and one of it’s subcomposites at the same time.
- test_load_when_sensor_none_in_preloaded_dataarrays()[source]
Test Scene loading when existing loaded arrays have sensor set to None.
Some readers or composites (ex. static images) don’t have a sensor and developers choose to set it to None. This test makes sure this doesn’t break loading.
- class satpy.tests.scene_tests.test_load.TestLoadingReaderDatasets[source]
Bases:
object
Test the Scene object’s .load method for datasets coming from a reader.
- pytestmark = [Mark(name='usefixtures', args=('include_test_etc',), kwargs={})]
- test_load_ds5_multiple_resolution_loads()[source]
Test loading a dataset with multiple resolutions available as separate loads.
- class satpy.tests.scene_tests.test_load.TestSceneAllAvailableDatasets[source]
Bases:
object
Test the Scene’s handling of various dependencies.
- pytestmark = [Mark(name='usefixtures', args=('include_test_etc',), kwargs={})]
- test_available_composite_ids_missing_available()[source]
Test available_composite_ids when a composites dep is missing.
- test_available_composites_known_versus_all()[source]
Test available_composite_ids when some datasets aren’t available.
- test_available_comps_no_deps()[source]
Test Scene available composites when composites don’t have a dependency.
- test_available_dataset_names_no_readers()[source]
Test the available dataset names without a reader.
- test_available_when_sensor_none_in_preloaded_dataarrays()[source]
Test Scene available composites when existing loaded arrays have sensor set to None.
Some readers or composites (ex. static images) don’t have a sensor and developers choose to set it to None. This test makes sure this doesn’t break available composite IDs.