satpy.tests.reader_tests.test_viirs_l2 module

Module for testing the satpy.readers.viirs_l2 module.

class satpy.tests.reader_tests.test_viirs_l2.FakeNetCDF4FileHandlerVIIRSL2(filename, filename_info, filetype_info, auto_maskandscale=False, xarray_kwargs=None, cache_var_size=0, cache_handle=False, extra_file_content=None)[source]

Bases: FakeNetCDF4FileHandler

Swap-in NetCDF4 File Handler.

Get fake file content from ‘get_test_content’.

_fill_contents_with_default_data(file_content, file_type)[source]

Fill file contents with default data.

get_test_content(filename, filename_info, filetype_info)[source]

Mimic reader input file content.

class satpy.tests.reader_tests.test_viirs_l2.TestVIIRSL2FileHandler[source]

Bases: object

Test VIIRS_L2 Reader.

setup_method()[source]

Wrap NetCDF4 file handler with our own fake handler.

teardown_method()[source]

Stop wrapping the NetCDF4 file handler.

test_init(filename)[source]

Test basic init with no extra parameters.

test_load_l2_files(filename, datasets)[source]

Test L2 File Loading.

yaml_file = 'viirs_l2.yaml'