satpy.tests.enhancement_tests.test_enhancements module
Unit testing the enhancements functions, e.g. cira_stretch.
- class satpy.tests.enhancement_tests.test_enhancements.TestColormapLoading[source]
Bases:
object
Test utilities used with colormaps.
- test_cmap_bad_mode(real_mode, forced_mode, filename_suffix)[source]
Test that reading colormaps with the wrong mode fails.
- class satpy.tests.enhancement_tests.test_enhancements.TestEnhancementStretch[source]
Bases:
object
Class for testing enhancements in satpy.enhancements.
- satpy.tests.enhancement_tests.test_enhancements.closed_named_temp_file(**kwargs)[source]
Named temporary file context manager that closes the file after creation.
This helps with Windows systems which can get upset with opening or deleting a file that is already open.
- satpy.tests.enhancement_tests.test_enhancements.identical_decorator(func)[source]
Decorate but do nothing.
- satpy.tests.enhancement_tests.test_enhancements.run_and_check_enhancement(func, data, expected, **kwargs)[source]
Perform basic checks that apply to multiple tests.
- satpy.tests.enhancement_tests.test_enhancements.test_on_dask_array()[source]
Test the on_dask_array decorator.
- satpy.tests.enhancement_tests.test_enhancements.test_on_separate_bands()[source]
Test the on_separate_bands decorator.