8000 set fileset inputs to mock when None in doctests · nipype/nipype2pydra@39674f7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 39674f7

Browse files
committed
set fileset inputs to mock when None in doctests
1 parent b79a412 commit 39674f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nipype2pydra/task/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,8 @@ def create_doctests(self, input_fields, nonstd_types):
913913
else:
914914
if isinstance(val, str):
915915
val = f'"{val}"'
916+
if val is None and is_fileset(tp):
917+
val = f"{tp.__name__}.mock()"
916918
if val is not attrs.NOTHING:
917919
doctest_str += f" >>> task.inputs.{nm} = {val}\n"
918920
doctest_str += " >>> task.cmdline\n"

0 commit comments

Comments
 (0)
0