summaryrefslogtreecommitdiff
path: root/src/python/test/test_remote_datasets.py
diff options
context:
space:
mode:
authorHind-M <hind.montassif@gmail.com>2021-06-04 12:21:11 +0200
committerHind-M <hind.montassif@gmail.com>2021-06-04 12:21:11 +0200
commitbbe2e25a204be50eb422db71b4cf314b92797d4e (patch)
tree7cd06ec158cfe903373942c892a7908b24b36139 /src/python/test/test_remote_datasets.py
parent3ee453718eebc7274b19caef4b79d8ec2754d583 (diff)
Remove checksum_flag parameter and use value of 'file_checksum is not None' instead
Diffstat (limited to 'src/python/test/test_remote_datasets.py')
-rw-r--r--src/python/test/test_remote_datasets.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/python/test/test_remote_datasets.py b/src/python/test/test_remote_datasets.py
index 63ad7885..6c9217c8 100644
--- a/src/python/test/test_remote_datasets.py
+++ b/src/python/test/test_remote_datasets.py
@@ -25,14 +25,15 @@ def test_fetch_remote_datasets():
# Test files download with checksums provided
- path_file_dw = remote.fetch("https://raw.githubusercontent.com/GUDHI/gudhi-data/main/points/spiral_2d.csv", "spiral_2d.csv", checksum_flag = True,
- file_checksum = '37530355d980d957c4ec06b18c775f90a91e446107d06c6201c9b4000b077f38')
+ path_file_dw = remote.fetch("https://raw.githubusercontent.com/GUDHI/gudhi-data/main/points/spiral_2d.csv", "spiral_2d.csv",
+ file_checksum = '37530355d980d957c4ec06b18c775f90a91e446107d06c6201c9b4000b077f38')
names_dw = re.split(r' |/|\\', path_file_dw)
assert 'remote_datasets' == names_dw[0]
assert 'spiral_2d.csv' == names_dw[1]
path_file_dw = remote.fetch("https://raw.githubusercontent.com/GUDHI/gudhi-data/main/points/sphere3D_pts_on_grid.off", "sphere3D_pts_on_grid.off",
- checksum_flag = True, file_checksum = '32f96d2cafb1177f0dd5e0a019b6ff5658e14a619a7815ae55ad0fc5e8bd3f88')
+ file_checksum = '32f96d2cafb1177f0dd5e0a019b6ff5658e14a619a7815ae55ad0fc5e8bd3f88')
+
names_dw = re.split(r' |/|\\', path_file_dw)
assert 'remote_datasets' == names_dw[0]
assert 'sphere3D_pts_on_grid.off' == names_dw[1]