Skip to content

Commit 0387d9c

Browse files
committed
updated file hashes in unittests
1 parent e0d9a60 commit 0387d9c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

pydra/engine/tests/test_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_hash_file(tmpdir):
5050
with open(outdir / "test.file", "w") as fp:
5151
fp.write("test")
5252
assert (
53-
hash_function(File(outdir / "test.file")) == "37fcc546dce7e59585f3217bb4c30299"
53+
hash_function(File(outdir / "test.file")) == "f32ab20c4a86616e32bf2504e1ac5a22"
5454
)
5555

5656

pydra/engine/tests/test_specs.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def test_input_file_hash_1(tmp_path):
140140
fields = [("in_file", File)]
141141
input_spec = SpecInfo(name="Inputs", fields=fields, bases=(BaseSpec,))
142142
inputs = make_klass(input_spec)
143-
assert inputs(in_file=outfile).hash == "0e9306e5cae1de1b4dff1f27cca03bce"
143+
assert inputs(in_file=outfile).hash == "02fa5f6f1bbde7f25349f54335e1adaf"
144144

145145

146146
def test_input_file_hash_2(tmp_path):
@@ -154,7 +154,7 @@ def test_input_file_hash_2(tmp_path):
154154

155155
# checking specific hash value
156156
hash1 = inputs(in_file=file).hash
157-
assert hash1 == "17e4e2b4d8ce8f36bf3fd65804958dbb"
157+
assert hash1 == "aaa50d60ed33d3a316d58edc882a34c3"
158158

159159
# checking if different name doesn't affect the hash
160160
file_diffname = tmp_path / "in_file_2.txt"
@@ -185,7 +185,7 @@ def test_input_file_hash_2a(tmp_path):
185185

186186
# checking specific hash value
187187
hash1 = inputs(in_file=file).hash
188-
assert hash1 == "17e4e2b4d8ce8f36bf3fd65804958dbb"
188+
assert hash1 == "aaa50d60ed33d3a316d58edc882a34c3"
189189

190190
# checking if different name doesn't affect the hash
191191
file_diffname = tmp_path / "in_file_2.txt"
@@ -204,7 +204,7 @@ def test_input_file_hash_2a(tmp_path):
204204

205205
# checking if string is also accepted
206206
hash4 = inputs(in_file=str(file)).hash
207-
assert hash4 == "aee7c7ae25509fb4c92a081d58d17a67"
207+
assert hash4 == "800af2b5b334c9e3e5c40c0e49b7ffb5"
208208

209209

210210
def test_input_file_hash_3(tmp_path):
@@ -278,7 +278,7 @@ def test_input_file_hash_4(tmp_path):
278278

279279
# checking specific hash value
280280
hash1 = inputs(in_file=[[file, 3]]).hash
281-
assert hash1 == "11b7e9c90bc8d9dc5ccfc8d4526ba091"
281+
assert hash1 == "0693adbfac9f675af87e900065b1de00"
282282

283283
# the same file, but int field changes
284284
hash1a = inputs(in_file=[[file, 5]]).hash
@@ -315,7 +315,7 @@ def test_input_file_hash_5(tmp_path):
315315

316316
# checking specific hash value
317317
hash1 = inputs(in_file=[{"file": file, "int": 3}]).hash
318-
assert hash1 == "5fd53b79e55bbf62a4bb3027eb753a2c"
318+
assert hash1 == "56e6e2c9f3bdf0cd5bd3060046dea480"
319319

320320
# the same file, but int field changes
321321
hash1a = inputs(in_file=[{"file": file, "int": 5}]).hash

0 commit comments

Comments
 (0)