Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
workflow
ewoks
ewoksdask
Commits
d8e147a9
Commit
d8e147a9
authored
Feb 23, 2022
by
Wout De Nolf
Browse files
test workflow events
parent
66288deb
Pipeline
#69151
failed with stages
in 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ewoksdask/tests/test_workflow_events.py
0 → 100644
View file @
d8e147a9
import
pytest
from
ewoksdask
import
execute_graph
from
ewokscore.tests.test_workflow_events
import
fetch_events
from
ewokscore.tests.test_workflow_events
import
run_succesfull_workfow
from
ewokscore.tests.test_workflow_events
import
run_failed_workfow
from
ewokscore.tests.test_workflow_events
import
assert_succesfull_workfow_events
from
ewokscore.tests.test_workflow_events
import
assert_failed_workfow_events
@
pytest
.
mark
.
parametrize
(
"scheduler"
,
(
None
,
"multithreading"
,
"multiprocessing"
))
def
test_succesfull_workfow
(
scheduler
,
tmpdir
):
uri
=
run_succesfull_workfow
(
tmpdir
,
execute_graph
,
scheduler
=
scheduler
)
events
=
fetch_events
(
uri
,
10
)
assert_succesfull_workfow_events
(
events
)
@
pytest
.
mark
.
parametrize
(
"scheduler"
,
(
None
,
"multithreading"
,
"multiprocessing"
))
def
test_failed_workfow
(
scheduler
,
tmpdir
):
uri
=
run_failed_workfow
(
tmpdir
,
execute_graph
,
scheduler
=
scheduler
)
events
=
fetch_events
(
uri
,
8
)
assert_failed_workfow_events
(
events
)
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment