Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fslpy
Commits
f7ce79a0
Commit
f7ce79a0
authored
Mar 29, 2019
by
Paul McCarthy
🚵
Browse files
TEST: Unit test fsl_anat wrapper
parent
eab4ee98
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_wrappers.py
View file @
f7ce79a0
...
...
@@ -288,3 +288,18 @@ def test_fast():
expected
=
[
cmd
,
'-v'
,
'--out=myseg'
,
'--class=3'
,
'in1'
,
'in2'
,
'in3'
]
assert
result
.
output
[
0
]
==
' '
.
join
(
expected
)
def
test_fsl_anat
():
with
asrt
.
disabled
(),
\
run
.
dryrun
(),
\
mockFSLDIR
(
bin
=
(
'fsl_anat'
,))
as
fsldir
:
cmd
=
op
.
join
(
fsldir
,
'bin'
,
'fsl_anat'
)
result
=
fw
.
fsl_anat
(
't1'
,
out
=
'fsl_anat'
,
bias_smoothing
=
25
)
expected
=
[
cmd
,
'-i'
,
't1'
,
'-o'
,
'fsl_anat'
,
'-t'
,
'T1'
,
'-s'
,
'25'
]
assert
result
.
output
[
0
]
==
' '
.
join
(
expected
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment