Skip to content

Commit 54f496c

Browse files
committed
adding the auto test for ACompCor
1 parent 688774b commit 54f496c

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from ..confounds import ACompCor
3+
4+
5+
def test_ACompCor_inputs():
6+
input_map = dict(components_file=dict(usedefault=True,
7+
),
8+
header=dict(),
9+
ignore_exception=dict(nohash=True,
10+
usedefault=True,
11+
),
12+
mask_file=dict(),
13+
num_components=dict(usedefault=True,
14+
),
15+
realigned_file=dict(mandatory=True,
16+
),
17+
regress_poly_degree=dict(usedefault=True,
18+
),
19+
use_regress_poly=dict(usedefault=True,
20+
),
21+
)
22+
inputs = ACompCor.input_spec()
23+
24+
for key, metadata in list(input_map.items()):
25+
for metakey, value in list(metadata.items()):
26+
assert getattr(inputs.traits()[key], metakey) == value
27+
28+
29+
def test_ACompCor_outputs():
30+
output_map = dict(components_file=dict(),
31+
)
32+
outputs = ACompCor.output_spec()
33+
34+
for key, metadata in list(output_map.items()):
35+
for metakey, value in list(metadata.items()):
36+
assert getattr(outputs.traits()[key], metakey) == value

0 commit comments

Comments
 (0)