Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
payno
workflow_concepts
Commits
628b8ac1
Commit
628b8ac1
authored
Jun 11, 2021
by
Wout De Nolf
Browse files
fix test
parent
c1593785
Changes
1
Hide whitespace changes
Inline
Side-by-side
esrftaskgraph/tests/test_task.py
View file @
628b8ac1
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
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