Skip to content

Commit 9147408

Browse files
committed
move tests, update specs
1 parent e5bb856 commit 9147408

10 files changed

+102
-10
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# -*- coding: utf-8 -*-

nipype/interfaces/tests/test_auto_BaseInterface.py renamed to nipype/interfaces/base/tests/test_auto_BaseInterface.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
22
from __future__ import unicode_literals
3-
from ..base import BaseInterface
3+
from ..core import BaseInterface
44

55

66
def test_BaseInterface_inputs():
7-
input_map = dict(ignore_exception=dict(nohash=True,
7+
input_map = dict(ignore_exception=dict(deprecated='1.0.0',
8+
nohash=True,
89
usedefault=True,
910
),
1011
)

nipype/interfaces/tests/test_auto_CommandLine.py renamed to nipype/interfaces/base/tests/test_auto_CommandLine.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
22
from __future__ import unicode_literals
3-
from ..base import CommandLine
3+
from ..core import CommandLine
44

55

66
def test_CommandLine_inputs():
@@ -9,7 +9,8 @@ def test_CommandLine_inputs():
99
environ=dict(nohash=True,
1010
usedefault=True,
1111
),
12-
ignore_exception=dict(nohash=True,
12+
ignore_exception=dict(deprecated='1.0.0',
13+
nohash=True,
1314
usedefault=True,
1415
),
1516
terminal_output=dict(deprecated='1.0.0',

nipype/interfaces/tests/test_auto_MpiCommandLine.py renamed to nipype/interfaces/base/tests/test_auto_MpiCommandLine.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
22
from __future__ import unicode_literals
3-
from ..base import MpiCommandLine
3+
from ..core import MpiCommandLine
44

55

66
def test_MpiCommandLine_inputs():
@@ -9,7 +9,8 @@ def test_MpiCommandLine_inputs():
99
environ=dict(nohash=True,
1010
usedefault=True,
1111
),
12-
ignore_exception=dict(nohash=True,
12+
ignore_exception=dict(deprecated='1.0.0',
13+
nohash=True,
1314
usedefault=True,
1415
),
1516
n_procs=dict(),
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from __future__ import unicode_literals
3+
from ..core import SEMLikeCommandLine
4+
5+
6+
def test_SEMLikeCommandLine_inputs():
7+
input_map = dict(args=dict(argstr='%s',
8+
),
9+
environ=dict(nohash=True,
10+
usedefault=True,
11+
),
12+
ignore_exception=dict(deprecated='1.0.0',
13+
nohash=True,
14+
usedefault=True,
15+
),
16+
terminal_output=dict(deprecated='1.0.0',
17+
nohash=True,
18+
),
19+
)
20+
inputs = SEMLikeCommandLine.input_spec()
21+
22+
for key, metadata in list(input_map.items()):
23+
for metakey, value in list(metadata.items()):
24+
assert getattr(inputs.traits()[key], metakey) == value
25+

nipype/interfaces/tests/test_auto_SimpleInterface.py renamed to nipype/interfaces/base/tests/test_auto_SimpleInterface.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
22
from __future__ import unicode_literals
3-
from ..base import SimpleInterface
3+
from ..core import SimpleInterface
44

55

66
def test_SimpleInterface_inputs():
7-
input_map = dict(ignore_exception=dict(nohash=True,
7+
input_map = dict(ignore_exception=dict(deprecated='1.0.0',
8+
nohash=True,
89
usedefault=True,
910
),
1011
)

nipype/interfaces/tests/test_auto_StdOutCommandLine.py renamed to nipype/interfaces/base/tests/test_auto_StdOutCommandLine.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
22
from __future__ import unicode_literals
3-
from ..base import StdOutCommandLine
3+
from ..core import StdOutCommandLine
44

55

66
def test_StdOutCommandLine_inputs():
@@ -9,7 +9,8 @@ def test_StdOutCommandLine_inputs():
99
environ=dict(nohash=True,
1010
usedefault=True,
1111
),
12-
ignore_exception=dict(nohash=True,
12+
ignore_exception=dict(deprecated='1.0.0',
13+
nohash=True,
1314
usedefault=True,
1415
),
1516
out_file=dict(argstr='> %s',
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from __future__ import unicode_literals
3+
from ..patchmatch import PatchMatch
4+
5+
6+
def test_PatchMatch_inputs():
7+
input_map = dict(args=dict(argstr='%s',
8+
),
9+
cs_size=dict(argstr='-cs %i',
10+
),
11+
database_file=dict(argstr='-db %s',
12+
mandatory=True,
13+
position=3,
14+
),
15+
environ=dict(nohash=True,
16+
usedefault=True,
17+
),
18+
ignore_exception=dict(deprecated='1.0.0',
19+
nohash=True,
20+
usedefault=True,
21+
),
22+
in_file=dict(argstr='-i %s',
23+
mandatory=True,
24+
position=1,
25+
),
26+
it_num=dict(argstr='-it %i',
27+
),
28+
mask_file=dict(argstr='-m %s',
29+
mandatory=True,
30+
position=2,
31+
),
32+
match_num=dict(argstr='-match %i',
33+
),
34+
out_file=dict(argstr='-o %s',
35+
name_source=['in_file'],
36+
name_template='%s_pm.nii.gz',
37+
position=4,
38+
),
39+
patch_size=dict(argstr='-size %i',
40+
),
41+
pm_num=dict(argstr='-pm %i',
42+
),
43+
terminal_output=dict(deprecated='1.0.0',
44+
nohash=True,
45+
),
46+
)
47+
inputs = PatchMatch.input_spec()
48+
49+
for key, metadata in list(input_map.items()):
50+
for metakey, value in list(metadata.items()):
51+
assert getattr(inputs.traits()[key], metakey) == value
52+
53+
54+
def test_PatchMatch_outputs():
55+
output_map = dict(out_file=dict(),
56+
)
57+
outputs = PatchMatch.output_spec()
58+
59+
for key, metadata in list(output_map.items()):
60+
for metakey, value in list(metadata.items()):
61+
assert getattr(outputs.traits()[key], metakey) == value

0 commit comments

Comments
 (0)