Skip to content
Snippets Groups Projects
Commit 065cf240 authored by Loic Huder's avatar Loic Huder
Browse files

Adapt tests to new ewokscore version

parent c0928678
No related branches found
No related tags found
1 merge request!102Adapt tests to new ewokscore version
Pipeline #195691 passed
......@@ -23,7 +23,7 @@ package_dir=
packages=find:
python_requires = >=3.6
install_requires =
ewokscore >=0.4.1
ewokscore >=0.8.0
pypushflow >=0.6.1
[options.packages.find]
......
......@@ -9,11 +9,17 @@ from ewokscore.tests.utils.results import assert_execute_graph_default_result
@pytest.mark.parametrize("graph_name", graph_names())
@pytest.mark.parametrize("scheme", (None, "json"))
def test_execute_graph(graph_name, scheme, ppf_log_config, tmpdir):
if graph_name == "self_trigger":
pytest.skip(
"Self-triggering workflow execution is inconsistent: https://gitlab.esrf.fr/workflow/ewoks/ewoksppf/-/issues/16"
)
graph, expected = get_graph(graph_name)
if scheme:
varinfo = {"root_uri": str(tmpdir), "scheme": scheme}
else:
varinfo = None
ewoksgraph = load_graph(graph)
result = execute_graph(graph, varinfo=varinfo, timeout=10)
assert_execute_graph_default_result(ewoksgraph, result, expected, varinfo)
......@@ -9,7 +9,7 @@ def workflow10(inputs):
{
"id": "addWithoutSleep",
"default_inputs": default_inputs,
"inputs_complete": True,
"force_start_node": True,
"task_type": "ppfmethod",
"task_identifier": "ewoksppf.tests.test_ppf_actors.pythonActorAddWithoutSleep.run",
},
......
......@@ -21,7 +21,7 @@ def workflow19():
{"name": "b", "value": 2},
{"name": "c", "value": 4},
],
"inputs_complete": True,
"force_start_node": True,
},
{
"id": "task2",
......
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