Skip to content

Commit a520650

Browse files
author
dmordom
committed
fixing command filename tests
1 parent 6052835 commit a520650

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/interfaces/tests/test_base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,14 @@ class spec2(nib.CommandLineInputSpec):
182182
position=2)
183183
doo = nib.File(exists=True, argstr="%s", position=1)
184184
goo = traits.Int(argstr="%d", position=4)
185-
poo = nib.File(name_source=['goo'], hash_files=False, argstr="%d",position=3)
185+
poo = nib.File(name_source=['goo'], hash_files=False, argstr="%s",position=3)
186186

187187
class TestName(nib.CommandLine):
188188
_cmd = "mycommand"
189189
input_spec = spec2
190190
testobj = TestName()
191191
testobj.inputs.doo = tmp_infile
192+
testobj.inputs.goo = 99
192193
yield assert_true, '%s_generated' % nme in testobj.cmdline
193194
testobj.inputs.moo = "my_%s_template"
194195
yield assert_true, 'my_%s_template' % nme in testobj.cmdline

0 commit comments

Comments
 (0)