satpy.tests.test_multiscene module

Unit tests for multiscene.py.

class satpy.tests.test_multiscene.TestBlendFuncs(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test individual functions used for blending.

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.

setUp()[source]

Set up test data.

test_stack()[source]

Test the ‘stack’ function.

test_timeseries()[source]

Test the ‘timeseries’ function.

class satpy.tests.test_multiscene.TestMultiScene(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test basic functionality of MultiScene.

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.

test_add_group_aliases()[source]

Test adding group aliases.

test_from_files()[source]

Test creating a multiscene from multiple files.

test_group()[source]

Test group.

test_init_children()[source]

Test creating a multiscene with children.

test_init_empty()[source]

Test creating a multiscene with no children.

test_properties()[source]

Test basic properties/attributes of the MultiScene.

class satpy.tests.test_multiscene.TestMultiSceneSave(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test saving a MultiScene to various formats.

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.

setUp()[source]

Create temporary directory to save files to.

tearDown()[source]

Remove the temporary directory created for a test.

test_crop()[source]

Test the crop method.

test_save_datasets_distributed_delayed()[source]

Test distributed save for writers returning delayed obejcts e.g. simple_image.

test_save_datasets_distributed_source_target()[source]

Test distributed save for writers returning sources and targets e.g. geotiff writer.

test_save_datasets_simple()[source]

Save a series of fake scenes to an PNG images.

test_save_mp4_distributed()[source]

Save a series of fake scenes to an mp4 video.

test_save_mp4_no_distributed()[source]

Save a series of fake scenes to an mp4 video when distributed isn’t available.

satpy.tests.test_multiscene.make_dataid(**items)[source]

Make a data id.

satpy.tests.test_multiscene.test_save_mp4(smg, tmp_path)[source]

Save a series of fake scenes to an mp4 video.