Skip to content
Snippets Groups Projects
Commit e5c03435 authored by paul.tresson_ird.fr's avatar paul.tresson_ird.fr
Browse files

update tests

parent 3c9d2e27
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ class TestClusteringAlgorithm(unittest.TestCase): ...@@ -19,7 +19,7 @@ class TestClusteringAlgorithm(unittest.TestCase):
result = self.algorithm.processAlgorithm(parameters, self.context, self.feedback) result = self.algorithm.processAlgorithm(parameters, self.context, self.feedback)
expected_result_path = os.path.join(self.algorithm.output_dir,'cluster.tif') expected_result_path = os.path.join(self.algorithm.output_dir,'cluster.tif')
result_file_hash = get_file_md5_hash(expected_result_path) 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) os.remove(expected_result_path)
......
...@@ -21,7 +21,11 @@ class TestReductionAlgorithm(unittest.TestCase): ...@@ -21,7 +21,11 @@ class TestReductionAlgorithm(unittest.TestCase):
expected_result_path = os.path.join(self.algorithm.output_dir,'proj.tif') expected_result_path = os.path.join(self.algorithm.output_dir,'proj.tif')
result_file_hash = get_file_md5_hash(expected_result_path) result_file_hash = get_file_md5_hash(expected_result_path)
## different rasterio versions lead to different hashes ? ## 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 in possible_hashes
# assert result_file_hash == '5eef4ea313d45b12beba8a7b9e2500ba' # assert result_file_hash == '5eef4ea313d45b12beba8a7b9e2500ba'
os.remove(expected_result_path) os.remove(expected_result_path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment