Skip to content

Commit 425a570

Browse files
committed
make specs
1 parent 615515c commit 425a570

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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

0 commit comments

Comments
 (0)