Mercurial > repos > shellac > sam_consensus_v3
comparison env/lib/python3.9/site-packages/cwltool/tests/test_empty_input.py @ 0:4f3585e2f14b draft default tip
"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author | shellac |
---|---|
date | Mon, 22 Mar 2021 18:12:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4f3585e2f14b |
---|---|
1 from io import StringIO | |
2 from pathlib import Path | |
3 | |
4 from cwltool.main import main | |
5 | |
6 from .util import get_data, windows_needs_docker | |
7 | |
8 | |
9 @windows_needs_docker | |
10 def test_empty_input(tmp_path: Path) -> None: | |
11 """Affirm that an empty input works.""" | |
12 empty_json = "{}" | |
13 empty_input = StringIO(empty_json) | |
14 | |
15 params = [ | |
16 "--outdir", | |
17 str(tmp_path), | |
18 get_data("tests/wf/no-parameters-echo.cwl"), | |
19 "-", | |
20 ] | |
21 | |
22 try: | |
23 assert main(params, stdin=empty_input) == 0 | |
24 except SystemExit as err: | |
25 assert err.code == 0 |