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
08bc7afe
"doc/git@git.fmrib.ox.ac.uk:fsl/fslpy.git" did not exist on "3b2a186e1ab75682532a131ce0ca009a634e5b62"
Commit
08bc7afe
authored
8 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
Fix to fixlabels test. New async test - making sure idleTimeout can be changed
parent
b0774fd8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/test_async.py
+9
-0
9 additions, 0 deletions
tests/test_async.py
tests/test_fixlabels.py
+1
-1
1 addition, 1 deletion
tests/test_fixlabels.py
with
10 additions
and
1 deletion
tests/test_async.py
+
9
−
0
View file @
08bc7afe
...
@@ -123,6 +123,15 @@ def _test_run():
...
@@ -123,6 +123,15 @@ def _test_run():
assert
onErrorCalled
[
0
]
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
():
def
test_idle
():
called
=
[
False
]
called
=
[
False
]
...
...
This diff is collapsed.
Click to expand it.
tests/test_fixlabels.py
+
1
−
1
View file @
08bc7afe
...
@@ -340,7 +340,7 @@ def test_saveLabelFile():
...
@@ -340,7 +340,7 @@ def test_saveLabelFile():
# dirname=something, listBad=False
# dirname=something, listBad=False
dirname
=
'
Blob/a.ica
'
dirname
=
'
Blob/a.ica
'
fixlabels
.
saveLabelFile
(
labels
,
fname
,
dirname
=
dirname
,
listBad
=
False
)
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
:
with
open
(
fname
,
'
rt
'
)
as
f
:
assert
f
.
read
().
strip
()
==
exp
assert
f
.
read
().
strip
()
==
exp
...
...
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