Skip to content

Commit c73137b

Browse files
committed
simplify
1 parent 07c162f commit c73137b

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

tests/test_2D.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
from pathlib import Path
2-
import pytest
2+
33
from .util import get_data, get_main_output
44

5-
@pytest.fixture(scope="session")
6-
def test_output_2d_file_format(tmp_path_factory: pytest.TempPathFactory) -> None:
5+
6+
def test_output_2d_file_format(tmp_path: Path) -> None:
77
"""A simple test for format tag fix for 2D output arrays."""
88

9-
tmp_path: Path = tmp_path_factory.mktemp("tmp")
109
# still need to create 'filename.txt' as it is needed in output_2D_file_format.cwl
11-
_ = tmp_path / "filename.txt"
10+
(tmp_path / "filename.txt").touch()
1211
commands = [
1312
"--cachedir",
1413
str(tmp_path / "foo"), # just so that the relative path of file works out
15-
get_data("tests/output_2D_file_format.cwl")]
14+
"--outdir",
15+
str(tmp_path / "out"),
16+
get_data("tests/output_2D_file_format.cwl"),
17+
]
1618

1719
error_code, _, stderr = get_main_output(commands)
1820

0 commit comments

Comments
 (0)