satpy.tests.test_yaml_reader module
Testing the yaml_reader module.
- class satpy.tests.test_yaml_reader.DummyReader(filename, filename_info, filetype_info)[source]
Bases:
BaseFileHandler
Dummy reader instance.
Initialize the dummy reader.
- property end_time
Return end time.
- property start_time
Return start time.
- class satpy.tests.test_yaml_reader.FakeFH(start_time, end_time)[source]
Bases:
BaseFileHandler
Fake file handler class.
Initialize fake file handler.
- property end_time
Return end time.
- property start_time
Return start time.
- satpy.tests.test_yaml_reader.GVSYReader()[source]
Get a fixture of the GEOVariableSegmentYAMLReader.
- class satpy.tests.test_yaml_reader.TestFileFileYAMLReader(methodName='runTest')[source]
Bases:
TestCase
Test units from FileYAMLReader.
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 = []
- test_deprecated_passing_config_files()[source]
Test that we get an exception when config files are passed to inti.
- class satpy.tests.test_yaml_reader.TestFileFileYAMLReaderMultipleFileTypes(methodName='runTest')[source]
Bases:
TestCase
Test units from FileYAMLReader with multiple file types.
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_yaml_reader.TestFileFileYAMLReaderMultiplePatterns(methodName='runTest')[source]
Bases:
TestCase
Test units from FileYAMLReader with multiple readers.
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_yaml_reader.TestFileYAMLReaderLoading(methodName='runTest')[source]
Bases:
TestCase
Tests for FileYAMLReader.load.
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_yaml_reader.TestFileYAMLReaderWithCustomIDKey(methodName='runTest')[source]
Bases:
TestCase
Test units from FileYAMLReader with custom id_keys.
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_yaml_reader.TestGEOFlippableFileYAMLReader(methodName='runTest')[source]
Bases:
TestCase
Test GEOFlippableFileYAMLReader.
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 = []
- test_load_dataset_with_area_for_data_without_area(ldwa)[source]
Test _load_dataset_with_area() for data wihtout area information.
- test_load_dataset_with_area_for_single_areas(ldwa)[source]
Test _load_dataset_with_area() for single area definitions.
- class satpy.tests.test_yaml_reader.TestGEOSegmentYAMLReader(methodName='runTest')[source]
Bases:
TestCase
Test GEOSegmentYAMLReader.
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_yaml_reader.TestGEOVariableSegmentYAMLReader[source]
Bases:
object
Test GEOVariableSegmentYAMLReader.
- test_get_empty_segment(GVSYReader, fake_mss, fake_xr, fake_geswh)[source]
Test execution of (overridden) get_empty_segment inside _load_dataset.
- test_pad_earlier_segments_area(GVSYReader, fake_adef)[source]
Test _pad_earlier_segments_area() for the variable segment case.
- class satpy.tests.test_yaml_reader.TestUtils(methodName='runTest')[source]
Bases:
TestCase
Test the utility functions.
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 = []
- satpy.tests.test_yaml_reader._create_mocked_fh_and_areadef(aex, ashape, expected_segments, segment, chk_pos_info)[source]
- satpy.tests.test_yaml_reader.available_datasets(self, configured_datasets=None)[source]
Fake available_datasets for testing multiple file types.
- satpy.tests.test_yaml_reader.fake_geswh()[source]
Get a fixture of the patched _get_empty_segment_with_height.