eoio.utils.tests.test_read_utils

eoio.utils.tests.test_read_utils#

eoio.utils.tests.test_read_utils - tests for eoio.utils.read_utils

Functions

Classes

TestCleanAndConvertAttrs([methodName])

TestExtractFileCalledWithAnAlreadyExtractedDirectory([...])

Regression test: for a reader whose get_extension() is "" (e.g. Landsat), path_extracted equals path itself once a product is already fully extracted -- so a caller passing that same already-resolved product directory back in as path (a real, already-observed call pattern, not hypothetical) must not make extract_file() try to open that directory as an archive.

TestExtractFileHealsRealInterruptedExtraction([...])

extract_file() end to end, real tar.gz fixture, no mocking -- simulates an interrupted extraction (fully extract, then delete one file, as if the process had been killed before writing it) and confirms extract_file() detects, heals, and re-reads it correctly, not just that the lower-level completeness helpers do in isolation.

TestExtractionCompleteness([methodName])

Real (unmocked) tar.gz/zip fixtures -- Landsat's own product format here is .tar.gz, which (unlike zip) has no central directory index, so building its member list means a full decompression pass; these tests exercise that real behaviour, not a mocked stand-in for it.

TestNetCDFSaveCompatibility([methodName])

TestReadUtils([methodName])

TestRevertAndConvertAttrs([methodName])