satpy.tests.test_demo module
Tests for the satpy.demo module.
- class satpy.tests.test_demo.TestAHIDemoDownload[source]
Bases:
object
Test the AHI demo data download.
- class satpy.tests.test_demo.TestDemo(methodName='runTest')[source]
Bases:
TestCase
Test demo data download functions.
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.
- _classSetupFailed = False
- _class_cleanups = []
- class satpy.tests.test_demo.TestGCPUtils(methodName='runTest')[source]
Bases:
TestCase
Test Google Cloud Platform utilities.
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.
- _classSetupFailed = False
- _class_cleanups = []
- class satpy.tests.test_demo.TestSEVIRIHRITDemoDownload(methodName='runTest')[source]
Bases:
TestCase
Test case for downloading an hrit tarball.
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.
- _classSetupFailed = False
- _class_cleanups = []
- class satpy.tests.test_demo.TestVIIRSSDRDemoDownload[source]
Bases:
object
Test VIIRS SDR downloading.
- ALL_BAND_PREFIXES = ('SVI01', 'SVI02', 'SVI03', 'SVI04', 'SVI05', 'SVM01', 'SVM02', 'SVM03', 'SVM04', 'SVM05', 'SVM06', 'SVM07', 'SVM08', 'SVM09', 'SVM10', 'SVM11', 'SVM12', 'SVM13', 'SVM14', 'SVM15', 'SVM16', 'SVDNB')
- ALL_GEO_PREFIXES = ('GITCO', 'GMTCO', 'GDNBO')
- test_download_channels_num_granules_dnb(requests, tmpdir)[source]
Test downloading and re-downloading VIIRS SDR DNB data with select granules.
- class satpy.tests.test_demo._FakeRequest(url, stream=None, timeout=None)[source]
Bases:
object
Fake object to act like a requests return value when downloading a file.
- class satpy.tests.test_demo._GlobHelper(num_results)[source]
Bases:
object
Create side effect function for mocking gcsfs glob method.
Initialize side_effect function for mocking gcsfs glob method.
- satpy.tests.test_demo._create_and_populate_dummy_tarfile(fn)[source]
Populate a dummy tarfile with dummy files.
- satpy.tests.test_demo.mock_filesystem()[source]
Create a mock filesystem, patching open and os.path.isfile.