Skip to content

Commit 6052835

Browse files
author
dmordom
committed
test also for parameter based source name for output file
1 parent 4f7b44e commit 6052835

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nipype/interfaces/tests/test_base.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from nipype.utils.filemanip import split_filename
1212
from nipype.interfaces.base import Undefined, config
1313
from traits.testing.nose_tools import skip
14-
14+
import traits.api as traits
1515
#test Bunch
1616
def test_bunch():
1717
b = nib.Bunch()
@@ -181,6 +181,9 @@ class spec2(nib.CommandLineInputSpec):
181181
moo = nib.File(name_source=['doo'], hash_files=False, argstr="%s",
182182
position=2)
183183
doo = nib.File(exists=True, argstr="%s", position=1)
184+
goo = traits.Int(argstr="%d", position=4)
185+
poo = nib.File(name_source=['goo'], hash_files=False, argstr="%d",position=3)
186+
184187
class TestName(nib.CommandLine):
185188
_cmd = "mycommand"
186189
input_spec = spec2

0 commit comments

Comments
 (0)