Skip to content

Commit 08389f7

Browse files
committed
Fixed a still failing test.
1 parent a81c179 commit 08389f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/maverick_functions_tests.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ def _hash_function(dir_to_test):
8989
A function to generate sha256 checksum of all contents of a directory.
9090
"""
9191
fnamelst = os.listdir(dir_to_test)
92+
# Skip the file that contains randomized data
93+
fnamelst = [x for x in fnamelst if x != "outputEvidenceNormalised.csv"]
9294
fnamelst = [os.path.join(dir_to_test, fname) for fname in fnamelst]
9395
hashes = [(hashlib.sha256(open(fname, 'rb').read()).digest())
9496
for fname in fnamelst]
@@ -98,6 +100,6 @@ def _hash_function(dir_to_test):
98100
mav_params = mw.mav_params_parser("smalldata/parameters.txt")
99101
mw.maverick_merger("files", [1, 2, 3], mav_params, False)
100102
known_hashes = _hash_function("files/test_merged")
101-
generated_hashes = _hash_function("files/merged")[1:]
103+
generated_hashes = _hash_function("files/merged")
102104

103105
assert known_hashes == generated_hashes

0 commit comments

Comments
 (0)