From 07a3343a3b71a897f0e720cbca38c2686de50738 Mon Sep 17 00:00:00 2001 From: Matic Lubej Date: Thu, 31 Aug 2023 14:31:42 +0200 Subject: [PATCH] add backwards compatibility test for loading uncompressed data --- tests/core/test_eodata_io.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/core/test_eodata_io.py b/tests/core/test_eodata_io.py index 531d670c..e9692cd9 100644 --- a/tests/core/test_eodata_io.py +++ b/tests/core/test_eodata_io.py @@ -441,6 +441,9 @@ def test_cleanup_different_compression(fs_loader, eopatch): mask_timeless_path = fs.path.join(folder, patch_folder, ftype.value, f"{fname}.npy") FeatureIONumpy.save(eopatch[(ftype, fname)], temp_fs, mask_timeless_path, compress_level=0) + # test EOPatch load of uncompressed features + EOPatch.load(fs.path.join(folder, patch_folder), filesystem=temp_fs) + # re-save compressed and check cleanup, bbox and timestamps are not compressed save_task(eopatch, eopatch_folder=patch_folder) assert temp_fs.exists(bbox_path)