satpy.tests.scene_tests.test_init module

Unit tests for Scene creation.

class satpy.tests.scene_tests.test_init.TestScene[source]

Bases: object

Test the scene class.

pytestmark = [Mark(name='usefixtures', args=('include_test_etc',), kwargs={})]
test_create_multiple_reader_different_kwargs(include_test_etc)[source]

Test passing different kwargs to different readers.

test_create_reader_instances_with_filenames()[source]

Test creating a reader providing filenames.

test_create_reader_instances_with_reader()[source]

Test createring a reader instance providing the reader name.

test_create_reader_instances_with_reader_kwargs()[source]

Test creating a reader instance with reader kwargs.

test_init()[source]

Test scene initialization.

test_init_alone()[source]

Test simple initialization.

test_init_no_files()[source]

Test that providing an empty list of filenames fails.

test_init_preserve_reader_kwargs()[source]

Test that the initialization preserves the kwargs.

test_init_str_filename()[source]

Test initializing with a single string as filenames.

test_init_with_empty_filenames()[source]

Test initialization with empty filename list.

test_init_with_fsfile()[source]

Test initialisation with FSFile objects.

test_start_end_times()[source]

Test start and end times for a scene.

test_storage_options_from_reader_kwargs_no_options()[source]

Test getting storage options from reader kwargs.

Case where there are no options given.

test_storage_options_from_reader_kwargs_per_reader()[source]

Test getting storage options from reader kwargs.

Case where each reader have their own storage options.

test_storage_options_from_reader_kwargs_per_reader_and_global()[source]

Test getting storage options from reader kwargs.

Case where each reader have their own storage options and there are global options to merge.

test_storage_options_from_reader_kwargs_single_dict(reader_kwargs)[source]

Test getting storage options from reader kwargs.

Case where a single dict is given for all readers with some common storage options.

test_storage_options_from_reader_kwargs_single_dict_no_options()[source]

Test getting storage options from reader kwargs for remote files.

Case where a single dict is given for all readers without storage options.