Skip to content
Snippets Groups Projects
Commit 08bc7afe authored by Paul McCarthy's avatar Paul McCarthy
Browse files

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
......@@ -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]
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment