satpy.tests.test_utils module
Testing of utils.
- class satpy.tests.test_utils.TestGeoUtils[source]
Bases:
object
Testing geo-related utility functions.
- 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.TestShowVersions[source]
Bases:
object
Test the ‘show_versions’ function.
- satpy.tests.test_utils.test_chunk_size_limit_from_dask_config()[source]
Check the chunk size limit computations.
- 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_datetime64_to_pydatetime(dt64, expected)[source]
Test conversion from datetime64 to Python datetime.
- 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.
- satpy.tests.test_utils.test_make_fake_scene()[source]
Test the make_fake_scene utility.
Although the make_fake_scene utility is for internal testing purposes, it has grown sufficiently complex that it needs its own testing.