Commit 628b8ac1 authored by Wout De Nolf's avatar Wout De Nolf
Browse files

fix test

parent c1593785
......@@ -52,6 +52,24 @@ def test_task_optional_input(tmpdir, variable_kwargs):
assert_storage(tmpdir, expected)
def test_task_done(variable_kwargs):
task = SumTask(a=10, **variable_kwargs)
assert not task.done
task.run()
assert task.done
task = SumTask(a=10, **variable_kwargs)
assert task.done
task = SumTask(a=10)
assert not task.done
task.run()
assert task.done
task = SumTask(a=10)
assert not task.done
def test_task_uhash(variable_kwargs):
task = SumTask(a=10, **variable_kwargs)
uhash = task.uhash
......@@ -62,15 +80,6 @@ def test_task_uhash(variable_kwargs):
assert task.uhash != uhash
assert task.uhash == task.output_variables.uhash
assert task.uhash != task.input_variables.uhash
uhash = task.uhash
task.run()
assert task.done
task.input_variables["a"].value += 1
assert task.uhash != uhash
assert task.uhash == task.output_variables.uhash
assert task.uhash != task.input_variables.uhash
assert not task.done
def test_task_storage(tmpdir, variable_kwargs):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment