satpy.tests.test_utils module
Testing of utils.
- class satpy.tests.test_utils.TestCheckSatpy(methodName='runTest')[source]
Bases:
TestCase
Test the ‘check_satpy’ function.
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.
- class satpy.tests.test_utils.TestGetSatPos[source]
Bases:
object
Tests for ‘get_satpos’.
- test_get_satpos(included_prefixes, preference, expected_result)[source]
Test getting the satellite position.
- class satpy.tests.test_utils.TestUtils(methodName='runTest')[source]
Bases:
TestCase
Testing utils.
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.
- satpy.tests.test_utils.test_convert_remote_files_to_fsspec_filename_dict()[source]
Test convertion of remote files to fsspec objects.
Case where filenames is a dictionary mapping readers and filenames.
- satpy.tests.test_utils.test_convert_remote_files_to_fsspec_fsfile()[source]
Test convertion of remote files to fsspec objects.
Case where the some of the files are already FSFile objects.
- satpy.tests.test_utils.test_convert_remote_files_to_fsspec_local_files()[source]
Test convertion of remote files to fsspec objects.
Case without scheme/protocol, which should default to plain filenames.
- satpy.tests.test_utils.test_convert_remote_files_to_fsspec_local_pathlib_files()[source]
Test convertion of remote files to fsspec objects.
Case using pathlib objects as filenames.
- satpy.tests.test_utils.test_convert_remote_files_to_fsspec_mixed_sources()[source]
Test convertion of remote files to fsspec objects.
Case with mixed local and remote files.
- satpy.tests.test_utils.test_convert_remote_files_to_fsspec_storage_options(open_files)[source]
Test convertion of remote files to fsspec objects.
Case with storage options given.
- satpy.tests.test_utils.test_convert_remote_files_to_fsspec_windows_paths()[source]
Test convertion of remote files to fsspec objects.
Case where windows paths are used.
- satpy.tests.test_utils.test_find_in_ancillary()[source]
Test finding a dataset in ancillary variables.
- satpy.tests.test_utils.test_logging_on_and_off(caplog)[source]
Test that switching logging on and off works.