Skip to content

Commit 7657b18

Browse files
author
Anton Khodak
committed
Fix test_compute_checksum
1 parent 621130f commit 7657b18

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

tests/test_examples.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -594,14 +594,14 @@ class TestChecksum(TestCmdLine):
594594

595595
def test_compute_checksum(self):
596596
f = cwltool.factory.Factory(compute_checksum=True, use_container=False)
597-
echo = f.make(get_data("tests/wf/wc-tool.cwl"))
597+
echo = f.make(get_data("tests/wf/cat-tool.cwl"))
598598
output = echo(file1={
599599
"class": "File",
600-
"location": "tests/wf/whale.txt"
600+
"location": get_data("tests/wf/whale.txt")
601601
},
602602
reverse=False
603603
)
604-
self.assertEquals(output['output']["checksum"], "sha1$9aefd466231cf30b4e9ae5234d58d192af7bcac4")
604+
self.assertEquals(output['output']["checksum"], "sha1$327fc7aedf4f6b69a42a7c8b808dc5a7aff61376")
605605

606606
def test_no_compute_checksum(self):
607607
test_file = "tests/wf/wc-tool.cwl"

tests/wf/cat-tool.cwl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env cwl-runner
2+
3+
class: CommandLineTool
4+
cwlVersion: v1.0
5+
6+
inputs:
7+
file1: File
8+
9+
outputs:
10+
output:
11+
type: File
12+
outputBinding: { glob: output }
13+
14+
baseCommand: [cat]
15+
16+
stdin: $(inputs.file1.path)
17+
stdout: output

0 commit comments

Comments
 (0)