File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
from pathlib import Path
2
- import pytest
2
+
3
3
from .util import get_data , get_main_output
4
4
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 :
7
7
"""A simple test for format tag fix for 2D output arrays."""
8
8
9
- tmp_path : Path = tmp_path_factory .mktemp ("tmp" )
10
9
# 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 ()
12
11
commands = [
13
12
"--cachedir" ,
14
13
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
+ ]
16
18
17
19
error_code , _ , stderr = get_main_output (commands )
18
20
You can’t perform that action at this time.
0 commit comments