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
08bc7afe
Commit
08bc7afe
authored
Apr 18, 2017
by
Paul McCarthy
Browse files
Fix to fixlabels test. New async test - making sure idleTimeout can be changed
parent
b0774fd8
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/test_async.py
View file @
08bc7afe
...
...
@@ -123,6 +123,15 @@ def _test_run():
assert
onErrorCalled
[
0
]
def
test_idleTimeout
():
async
.
idleReset
()
default
=
async
.
getIdleTimeout
()
async
.
setIdleTimeout
(
999
)
assert
async
.
getIdleTimeout
()
==
999
async
.
setIdleTimeout
()
assert
async
.
getIdleTimeout
()
==
default
def
test_idle
():
called
=
[
False
]
...
...
tests/test_fixlabels.py
View file @
08bc7afe
...
...
@@ -340,7 +340,7 @@ def test_saveLabelFile():
# dirname=something, listBad=False
dirname
=
'Blob/a.ica'
fixlabels
.
saveLabelFile
(
labels
,
fname
,
dirname
=
dirname
,
listBad
=
False
)
exp
=
'{}
\n
{}'
.
format
(
op
.
abspath
(
dirname
)
,
expected
)
exp
=
'{}
\n
{}'
.
format
(
dirname
,
expected
)
with
open
(
fname
,
'rt'
)
as
f
:
assert
f
.
read
().
strip
()
==
exp
...
...
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