Skip to content

Commit f8ba35d

Browse files
committed
improve test coverage
1 parent 13f8437 commit f8ba35d

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

tests/test-cwl-out-v1.3.cwl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
class: CommandLineTool
2+
cwlVersion: v1.3.0-dev1
3+
4+
inputs: []
5+
6+
baseCommand: sh
7+
8+
arguments:
9+
- -c
10+
- |
11+
echo '{"foo": 5 }'
12+
13+
stdout: cwl.output.json
14+
15+
outputs: {}

tests/test_cwl_output_json.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,29 @@
33
from .util import get_data, get_main_output
44

55

6-
def test_cwl_outpu_json_missing_field_v1_0() -> None:
6+
def test_cwl_output_json_missing_field_v1_0() -> None:
77
"""Confirm that unknown outputs are propagated from cwl.output.json in CWL v1.0."""
88
err_code, stdout, _ = get_main_output([get_data("tests/test-cwl-out-v1.0.cwl")])
99
assert err_code == 0
1010
assert "foo" in json.loads(stdout)
1111

1212

13-
def test_cwl_outpu_json_missing_field_v1_1() -> None:
13+
def test_cwl_output_json_missing_field_v1_1() -> None:
1414
"""Confirm that unknown outputs are propagated from cwl.output.json in CWL v1.1."""
1515
err_code, stdout, _ = get_main_output([get_data("tests/test-cwl-out-v1.1.cwl")])
1616
assert err_code == 0
1717
assert "foo" in json.loads(stdout)
1818

1919

20-
def test_cwl_outpu_json_missing_field_v1_2() -> None:
20+
def test_cwl_output_json_missing_field_v1_2() -> None:
2121
"""Confirm that unknown outputs are propagated from cwl.output.json in CWL v1.2."""
2222
err_code, stdout, _ = get_main_output([get_data("tests/test-cwl-out-v1.2.cwl")])
2323
assert err_code == 0
2424
assert "foo" in json.loads(stdout)
25+
26+
27+
def test_cwl_output_json_missing_field_v1_3() -> None:
28+
"""Confirm that unknown outputs are propagated from cwl.output.json in CWL v1.3."""
29+
err_code, stdout, _ = get_main_output(["--enable-dev", get_data("tests/test-cwl-out-v1.3.cwl")])
30+
assert err_code == 0
31+
assert "foo" not in json.loads(stdout)

0 commit comments

Comments
 (0)