-
-
Notifications
You must be signed in to change notification settings - Fork 244
Expand file tree
/
Copy pathtest_2D.py
More file actions
21 lines (15 loc) · 644 Bytes
/
test_2D.py
File metadata and controls
21 lines (15 loc) · 644 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from pathlib import Path
from .util import get_data, get_main_output
def test_output_2d_file_format(tmp_path: Path) -> None:
"""A simple test for format tag fix for 2D output arrays."""
# still need to create 'filename.txt' as it is needed in output_2D_file_format.cwl
(tmp_path / "filename.txt").touch()
commands = [
"--cachedir",
str(tmp_path / "foo"), # just so that the relative path of file works out
"--outdir",
str(tmp_path / "out"),
get_data("tests/output_2D_file_format.cwl"),
]
error_code, _, stderr = get_main_output(commands)
assert error_code == 0, stderr