Skip to content

Commit f5a775e

Browse files
committed
test: Get test failures down to 1
1 parent 36df8b9 commit f5a775e

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

pydra/compose/nipype1/builder.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,19 +152,18 @@ class Nipype1Task(base.Task):
152152
in Pydra Task outputs.
153153
154154
>>> import pytest
155-
>>> from pydra.tasks.nipype1.tests import load_resource
155+
>>> from pydra.compose.nipype1.tests import load_resource
156156
>>> from nipype.interfaces import fsl
157157
>>> if fsl.Info.version() is None:
158158
... pytest.skip()
159159
>>> img = load_resource('nipype', 'testing/data/tpms_msk.nii.gz')
160160
161-
>>> from pydra.tasks.nipype1.utils import Nipype1Task
162-
>>> thresh = Nipype1Task(fsl.Threshold())
163-
>>> thresh.inputs.in_file = img
164-
>>> thresh.inputs.thresh = 0.5
161+
>>> from pydra.compose.nipype1.builder import define
162+
>>> Threshold = define(fsl.Threshold())
163+
>>> thresh = Threshold(in_file=img, thresh=0.5)
165164
>>> res = thresh()
166-
>>> res.output.out_file # DOCTEST: +ELLIPSIS
167-
'.../tpms_msk_thresh.nii.gz'
165+
>>> res.out_file # DOCTEST: +ELLIPSIS
166+
File('.../tpms_msk_thresh.nii.gz')
168167
"""
169168

170169
_task_type = "nipype1"

0 commit comments

Comments
 (0)