From 8b58f87bca430c5d492387889077fd0adbf1acad Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Wed, 10 Jul 2024 20:26:18 +0200 Subject: [PATCH] simplify --- tests/test_2D.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_2D.py b/tests/test_2D.py index 952515f255..a5baa69a78 100644 --- a/tests/test_2D.py +++ b/tests/test_2D.py @@ -1,18 +1,18 @@ 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")] + get_data("tests/output_2D_file_format.cwl"), + ] error_code, _, stderr = get_main_output(commands)