Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fslpy
Commits
e12285c4
Commit
e12285c4
authored
5 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
TEST: Unit test fsl_anat wrapper
parent
eab4ee98
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_wrappers.py
+15
-0
15 additions, 0 deletions
tests/test_wrappers.py
with
15 additions
and
0 deletions
tests/test_wrappers.py
+
15
−
0
View file @
e12285c4
...
...
@@ -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
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment