From a8c280846d5823fe83c83421e06e4bb21a682d96 Mon Sep 17 00:00:00 2001 From: Oscar Esteban Date: Mon, 28 Jul 2014 13:16:08 +0200 Subject: [PATCH] Added missing auto-generated tests --- .../interfaces/afni/tests/test_auto_Volreg.py | 6 ++ .../tests/test_auto_LaplacianThickness.py | 65 +++++++++++++++++++ .../tests/test_auto_SSHDataGrabber.py | 44 +++++++++++++ 3 files changed, 115 insertions(+) create mode 100644 nipype/interfaces/ants/tests/test_auto_LaplacianThickness.py create mode 100644 nipype/interfaces/tests/test_auto_SSHDataGrabber.py diff --git a/nipype/interfaces/afni/tests/test_auto_Volreg.py b/nipype/interfaces/afni/tests/test_auto_Volreg.py index 7a63fd6402..03ef5559cc 100644 --- a/nipype/interfaces/afni/tests/test_auto_Volreg.py +++ b/nipype/interfaces/afni/tests/test_auto_Volreg.py @@ -32,6 +32,11 @@ def test_Volreg_inputs(): name_source='in_file', name_template='%s.1D', ), + oned_matrix_save=dict(argstr='-1Dmatrix_save %s', + keep_extension=True, + name_source='in_file', + name_template='%s.aff12.1D', + ), out_file=dict(argstr='-prefix %s', name_source='in_file', name_template='%s_volreg', @@ -57,6 +62,7 @@ def test_Volreg_inputs(): def test_Volreg_outputs(): output_map = dict(md1d_file=dict(), oned_file=dict(), + oned_matrix_save=dict(), out_file=dict(), ) outputs = Volreg.output_spec() diff --git a/nipype/interfaces/ants/tests/test_auto_LaplacianThickness.py b/nipype/interfaces/ants/tests/test_auto_LaplacianThickness.py new file mode 100644 index 0000000000..6591807f82 --- /dev/null +++ b/nipype/interfaces/ants/tests/test_auto_LaplacianThickness.py @@ -0,0 +1,65 @@ +# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT +from nipype.testing import assert_equal +from nipype.interfaces.ants.segmentation import LaplacianThickness + +def test_LaplacianThickness_inputs(): + input_map = dict(args=dict(argstr='%s', + ), + dT=dict(argstr='dT=%d', + position=6, + ), + environ=dict(nohash=True, + usedefault=True, + ), + ignore_exception=dict(nohash=True, + usedefault=True, + ), + input_gm=dict(argstr='%s', + copyfile=True, + mandatory=True, + position=2, + ), + input_wm=dict(argstr='%s', + copyfile=True, + mandatory=True, + position=1, + ), + num_threads=dict(nohash=True, + usedefault=True, + ), + opt_tolerance=dict(argstr='optional-laplacian-tolerance=%d', + position=8, + ), + output_image=dict(argstr='%s', + genfile=True, + hash_files=False, + position=3, + ), + prior_thickness=dict(argstr='priorthickval=%d', + position=5, + ), + smooth_param=dict(argstr='smoothparam=%d', + position=4, + ), + sulcus_prior=dict(argstr='use-sulcus-prior', + position=7, + ), + terminal_output=dict(mandatory=True, + nohash=True, + ), + ) + inputs = LaplacianThickness.input_spec() + + for key, metadata in input_map.items(): + for metakey, value in metadata.items(): + yield assert_equal, getattr(inputs.traits()[key], metakey), value + +def test_LaplacianThickness_outputs(): + output_map = dict(output_image=dict(), + ) + outputs = LaplacianThickness.output_spec() + + for key, metadata in output_map.items(): + for metakey, value in metadata.items(): + yield assert_equal, getattr(outputs.traits()[key], metakey), value + diff --git a/nipype/interfaces/tests/test_auto_SSHDataGrabber.py b/nipype/interfaces/tests/test_auto_SSHDataGrabber.py new file mode 100644 index 0000000000..9bfab67709 --- /dev/null +++ b/nipype/interfaces/tests/test_auto_SSHDataGrabber.py @@ -0,0 +1,44 @@ +# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT +from nipype.testing import assert_equal +from nipype.interfaces.io import SSHDataGrabber + +def test_SSHDataGrabber_inputs(): + input_map = dict(base_directory=dict(mandatory=True, + ), + download_files=dict(usedefault=True, + ), + hostname=dict(mandatory=True, + ), + ignore_exception=dict(nohash=True, + usedefault=True, + ), + password=dict(mandatory=False, + ), + raise_on_empty=dict(usedefault=True, + ), + sort_filelist=dict(mandatory=True, + ), + ssh_log_to_file=dict(usedefault=True, + ), + template=dict(mandatory=True, + ), + template_args=dict(), + template_expression=dict(usedefault=True, + ), + username=dict(mandatory=False, + ), + ) + inputs = SSHDataGrabber.input_spec() + + for key, metadata in input_map.items(): + for metakey, value in metadata.items(): + yield assert_equal, getattr(inputs.traits()[key], metakey), value + +def test_SSHDataGrabber_outputs(): + output_map = dict() + outputs = SSHDataGrabber.output_spec() + + for key, metadata in output_map.items(): + for metakey, value in metadata.items(): + yield assert_equal, getattr(outputs.traits()[key], metakey), value +