Skip to content

Commit 48bf276

Browse files
committed
Merge pull request #887 from oesteban/fix/AddMissingAutoTests
Added missing auto-generated tests
2 parents 8a5a190 + a8c2808 commit 48bf276

File tree

3 files changed

+115
-0
lines changed

3 files changed

+115
-0
lines changed

nipype/interfaces/afni/tests/test_auto_Volreg.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ def test_Volreg_inputs():
3232
name_source='in_file',
3333
name_template='%s.1D',
3434
),
35+
oned_matrix_save=dict(argstr='-1Dmatrix_save %s',
36+
keep_extension=True,
37+
name_source='in_file',
38+
name_template='%s.aff12.1D',
39+
),
3540
out_file=dict(argstr='-prefix %s',
3641
name_source='in_file',
3742
name_template='%s_volreg',
@@ -57,6 +62,7 @@ def test_Volreg_inputs():
5762
def test_Volreg_outputs():
5863
output_map = dict(md1d_file=dict(),
5964
oned_file=dict(),
65+
oned_matrix_save=dict(),
6066
out_file=dict(),
6167
)
6268
outputs = Volreg.output_spec()
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from nipype.testing import assert_equal
3+
from nipype.interfaces.ants.segmentation import LaplacianThickness
4+
5+
def test_LaplacianThickness_inputs():
6+
input_map = dict(args=dict(argstr='%s',
7+
),
8+
dT=dict(argstr='dT=%d',
9+
position=6,
10+
),
11+
environ=dict(nohash=True,
12+
usedefault=True,
13+
),
14+
ignore_exception=dict(nohash=True,
15+
usedefault=True,
16+
),
17+
input_gm=dict(argstr='%s',
18+
copyfile=True,
19+
mandatory=True,
20+
position=2,
21+
),
22+
input_wm=dict(argstr='%s',
23+
copyfile=True,
24+
mandatory=True,
25+
position=1,
26+
),
27+
num_threads=dict(nohash=True,
28+
usedefault=True,
29+
),
30+
opt_tolerance=dict(argstr='optional-laplacian-tolerance=%d',
31+
position=8,
32+
),
33+
output_image=dict(argstr='%s',
34+
genfile=True,
35+
hash_files=False,
36+
position=3,
37+
),
38+
prior_thickness=dict(argstr='priorthickval=%d',
39+
position=5,
40+
),
41+
smooth_param=dict(argstr='smoothparam=%d',
42+
position=4,
43+
),
44+
sulcus_prior=dict(argstr='use-sulcus-prior',
45+
position=7,
46+
),
47+
terminal_output=dict(mandatory=True,
48+
nohash=True,
49+
),
50+
)
51+
inputs = LaplacianThickness.input_spec()
52+
53+
for key, metadata in input_map.items():
54+
for metakey, value in metadata.items():
55+
yield assert_equal, getattr(inputs.traits()[key], metakey), value
56+
57+
def test_LaplacianThickness_outputs():
58+
output_map = dict(output_image=dict(),
59+
)
60+
outputs = LaplacianThickness.output_spec()
61+
62+
for key, metadata in output_map.items():
63+
for metakey, value in metadata.items():
64+
yield assert_equal, getattr(outputs.traits()[key], metakey), value
65+
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from nipype.testing import assert_equal
3+
from nipype.interfaces.io import SSHDataGrabber
4+
5+
def test_SSHDataGrabber_inputs():
6+
input_map = dict(base_directory=dict(mandatory=True,
7+
),
8+
download_files=dict(usedefault=True,
9+
),
10+
hostname=dict(mandatory=True,
11+
),
12+
ignore_exception=dict(nohash=True,
13+
usedefault=True,
14+
),
15+
password=dict(mandatory=False,
16+
),
17+
raise_on_empty=dict(usedefault=True,
18+
),
19+
sort_filelist=dict(mandatory=True,
20+
),
21+
ssh_log_to_file=dict(usedefault=True,
22+
),
23+
template=dict(mandatory=True,
24+
),
25+
template_args=dict(),
26+
template_expression=dict(usedefault=True,
27+
),
28+
username=dict(mandatory=False,
29+
),
30+
)
31+
inputs = SSHDataGrabber.input_spec()
32+
33+
for key, metadata in input_map.items():
34+
for metakey, value in metadata.items():
35+
yield assert_equal, getattr(inputs.traits()[key], metakey), value
36+
37+
def test_SSHDataGrabber_outputs():
38+
output_map = dict()
39+
outputs = SSHDataGrabber.output_spec()
40+
41+
for key, metadata in output_map.items():
42+
for metakey, value in metadata.items():
43+
yield assert_equal, getattr(outputs.traits()[key], metakey), value
44+

0 commit comments

Comments
 (0)