satpy.tests.test_config module

Test objects and functions in the satpy.config module.

class satpy.tests.test_config.TestBuiltinAreas(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test that the builtin areas are all valid.

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_areas_pyproj()[source]

Test all areas have valid projections with pyproj.

test_areas_rasterio()[source]

Test all areas have valid projections with rasterio.

class satpy.tests.test_config.TestConfigObject[source]

Bases: object

Test basic functionality of the central config object.

test_bad_str_config_path()[source]

Test that a str config path isn’t allowed.

test_config_path_multiple()[source]

Test that multiple config paths are accepted.

test_config_path_multiple_load()[source]

Test that config paths from subprocesses load properly.

Satpy modifies the config path environment variable when it is imported. If Satpy is imported again from a subprocess then it should be able to parse this modified variable.

test_custom_config_file()[source]

Test adding a custom configuration file using SATPY_CONFIG.

test_deprecated_env_vars()[source]

Test that deprecated variables are mapped to new config.

class satpy.tests.test_config.TestPluginsConfigs(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test that plugins are working.

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_get_plugin_configs(iter_entry_points)[source]

Check that the plugin configs are looked for.