Skip to content

Commit e0046a0

Browse files
author
mahdieh-dst
committed
make output directory if not already present
1 parent 66c4a08 commit e0046a0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_smriprep.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
from pathlib import Path
12
from nipype2pydra.cli import workflow
23
from nipype2pydra.utils import show_cli_trace
34

45

56
def test_smriprep(pkg_dir, cli_runner):
67

8+
output_dir = Path(pkg_dir) / "outputs"
9+
10+
if not output_dir.exists():
11+
output_dir.mkdir()
12+
713
result = cli_runner(
814
workflow,
915
[

0 commit comments

Comments
 (0)