From e5c03435a2cc78b398625524d4de11f3eb9c295b Mon Sep 17 00:00:00 2001
From: ptresson <paul.tresson@ird.fr>
Date: Mon, 21 Oct 2024 16:12:32 +0200
Subject: [PATCH] update tests

---
 tests/test_clustering.py | 2 +-
 tests/test_reduction.py  | 6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/tests/test_clustering.py b/tests/test_clustering.py
index 93b1ce9..473ef48 100644
--- a/tests/test_clustering.py
+++ b/tests/test_clustering.py
@@ -19,7 +19,7 @@ class TestClusteringAlgorithm(unittest.TestCase):
         result = self.algorithm.processAlgorithm(parameters, self.context, self.feedback)
         expected_result_path = os.path.join(self.algorithm.output_dir,'cluster.tif')
         result_file_hash = get_file_md5_hash(expected_result_path)
-        assert result_file_hash == 'ecb1e17173b1601866ae7055694739e8'
+        assert result_file_hash == '0c47b0c4b4c13902db5da3ee6e5d4aef'
         os.remove(expected_result_path)
 
 
diff --git a/tests/test_reduction.py b/tests/test_reduction.py
index d9a9670..e5dd075 100644
--- a/tests/test_reduction.py
+++ b/tests/test_reduction.py
@@ -21,7 +21,11 @@ class TestReductionAlgorithm(unittest.TestCase):
         expected_result_path = os.path.join(self.algorithm.output_dir,'proj.tif')
         result_file_hash = get_file_md5_hash(expected_result_path)
         ## different rasterio versions lead to different hashes ? 
-        possible_hashes = [ '5eef4ea313d45b12beba8a7b9e2500ba', '743465d291bd2ada6ea9807752c6e7fe']
+        possible_hashes = [
+                # '5eef4ea313d45b12beba8a7b9e2500ba', 
+                # '743465d291bd2ada6ea9807752c6e7fe',
+                'd7a32c6b7a4cee1af9c73607561d7b25',
+                           ]
         assert result_file_hash in possible_hashes
         # assert result_file_hash == '5eef4ea313d45b12beba8a7b9e2500ba'
         os.remove(expected_result_path)
-- 
GitLab