Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Jul 11, 2024
1 parent 07c162f commit c73137b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/test_2D.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
from pathlib import Path
import pytest

from .util import get_data, get_main_output

@pytest.fixture(scope="session")
def test_output_2d_file_format(tmp_path_factory: pytest.TempPathFactory) -> None:

def test_output_2d_file_format(tmp_path: Path) -> None:
"""A simple test for format tag fix for 2D output arrays."""

tmp_path: Path = tmp_path_factory.mktemp("tmp")
# still need to create 'filename.txt' as it is needed in output_2D_file_format.cwl
_ = tmp_path / "filename.txt"
(tmp_path / "filename.txt").touch()
commands = [
"--cachedir",
str(tmp_path / "foo"), # just so that the relative path of file works out
get_data("tests/output_2D_file_format.cwl")]
"--outdir",
str(tmp_path / "out"),
get_data("tests/output_2D_file_format.cwl"),
]

error_code, _, stderr = get_main_output(commands)

Expand Down

0 comments on commit c73137b

Please sign in to comment.