File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+ from __future__ import unicode_literals
3+ from ..bids_utils import BIDSDataGrabber
4+
5+
6+ def test_BIDSDataGrabber_inputs ():
7+ input_map = dict (base_dir = dict (mandatory = True ,
8+ ),
9+ output_query = dict (),
10+ raise_on_empty = dict (usedefault = True ,
11+ ),
12+ return_type = dict (usedefault = True ,
13+ ),
14+ )
15+ inputs = BIDSDataGrabber .input_spec ()
16+
17+ for key , metadata in list (input_map .items ()):
18+ for metakey , value in list (metadata .items ()):
19+ assert getattr (inputs .traits ()[key ], metakey ) == value
20+
21+
22+ def test_BIDSDataGrabber_outputs ():
23+ output_map = dict ()
24+ outputs = BIDSDataGrabber .output_spec ()
25+
26+ for key , metadata in list (output_map .items ()):
27+ for metakey , value in list (metadata .items ()):
28+ assert getattr (outputs .traits ()[key ], metakey ) == value
You can’t perform that action at this time.
0 commit comments