Skip to content

TEST: Update auto tests #1865

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 7, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions nipype/algorithms/tests/test_auto_ComputeDVARS.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ def test_ComputeDVARS_inputs():
),
in_mask=dict(mandatory=True,
),
intensity_normalization=dict(usedefault=True,
),
remove_zerovariance=dict(usedefault=True,
),
save_all=dict(usedefault=True,
Expand Down
2 changes: 2 additions & 0 deletions nipype/algorithms/tests/test_auto_FramewiseDisplacement.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def test_FramewiseDisplacement_inputs():
),
out_file=dict(usedefault=True,
),
parameter_source=dict(mandatory=True,
),
radius=dict(usedefault=True,
),
save_plot=dict(usedefault=True,
Expand Down
27 changes: 27 additions & 0 deletions nipype/algorithms/tests/test_auto_NonSteadyStateDetector.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from __future__ import unicode_literals
from ..confounds import NonSteadyStateDetector


def test_NonSteadyStateDetector_inputs():
input_map = dict(ignore_exception=dict(nohash=True,
usedefault=True,
),
in_file=dict(mandatory=True,
),
)
inputs = NonSteadyStateDetector.input_spec()

for key, metadata in list(input_map.items()):
for metakey, value in list(metadata.items()):
assert getattr(inputs.traits()[key], metakey) == value


def test_NonSteadyStateDetector_outputs():
output_map = dict(n_volumes_to_discard=dict(),
)
outputs = NonSteadyStateDetector.output_spec()

for key, metadata in list(output_map.items()):
for metakey, value in list(metadata.items()):
assert getattr(outputs.traits()[key], metakey) == value