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
c9cc1dec
Commit
c9cc1dec
authored
Feb 27, 2018
by
Paul McCarthy
🚵
Browse files
mark more longtests, and another wxtest
parent
820ac264
Changes
4
Hide whitespace changes
Inline
Side-by-side
tests/test_atlases_query.py
View file @
c9cc1dec
...
...
@@ -96,9 +96,11 @@ def _get_zero_mask(aimg):
def
test_label_coord_query
(
seed
):
_test_query
(
'coord'
,
'label'
)
def
test_label_voxel_query
(
seed
):
_test_query
(
'voxel'
,
'label'
)
@
pytest
.
mark
.
longtest
def
test_label_mask_query
(
seed
):
_test_query
(
'mask'
,
'label'
)
def
test_summary_coord_query
(
seed
):
_test_query
(
'coord'
,
'prob'
,
summary
=
True
)
def
test_summary_voxel_query
(
seed
):
_test_query
(
'voxel'
,
'prob'
,
summary
=
True
)
@
pytest
.
mark
.
longtest
def
test_summary_mask_query
(
seed
):
_test_query
(
'mask'
,
'prob'
,
summary
=
True
)
def
test_prob_coord_query
(
seed
):
_test_query
(
'coord'
,
'prob'
)
def
test_prob_voxel_query
(
seed
):
_test_query
(
'voxel'
,
'prob'
)
...
...
tests/test_atlasq_ohi.py
View file @
c9cc1dec
...
...
@@ -46,6 +46,7 @@ def test_dumpatlases():
assert
capture
.
stdout
.
strip
()
==
'
\n
'
.
join
(
atlases
)
@
pytest
.
mark
.
longtest
def
test_coords
(
seed
):
"""Test the ohi -a "atlas" -c "coords" mode. """
...
...
@@ -142,6 +143,7 @@ def test_bad_atlas():
assert
capture
.
stdout
.
strip
()
==
expected
@
pytest
.
mark
.
longtest
def
test_mask
(
seed
):
"""Test the ohi -a "atlas" -m "mask" mode, with label and probabilistic
atlases.
...
...
tests/test_atlasq_query.py
View file @
c9cc1dec
...
...
@@ -70,6 +70,8 @@ def test_query_voxel(seed):
_test_query
([
t
for
t
in
tests
if
t
[
2
]
==
'voxel'
])
def
test_query_coord
(
seed
):
_test_query
([
t
for
t
in
tests
if
t
[
2
]
==
'coordinate'
])
@
pytest
.
mark
.
longtest
def
test_query_mask
(
seed
):
_test_query
([
t
for
t
in
tests
if
t
[
2
].
startswith
(
'mask'
)])
...
...
tests/test_platform.py
View file @
c9cc1dec
...
...
@@ -63,6 +63,7 @@ def test_haveGui():
assert
passed
[
0
]
@
pytest
.
mark
.
wxtest
def
test_wxatts
():
with
mock
.
patch
.
dict
(
'sys.modules'
,
wx
=
None
):
...
...
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