_______________________ test_workflow21[True-True-args1] _______________________
args = {'inputs': {'a': 0}, 'return_value': 2}, on_error = True, persist = True
ppf_log_config = None
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_workflow21_True_True_args1')
@pytest.mark.parametrize(
"args",
[ARG_SUCCESS, ARG_FAILURE],
)
@pytest.mark.parametrize("on_error", [True, False])
@pytest.mark.parametrize("persist", [True, False])
def test_workflow21(args, on_error, persist, ppf_log_config, tmpdir):
"""Test conditions in output nodes"""
if persist:
varinfo = {"root_uri": str(tmpdir)}
else:
varinfo = None
graph = workflow21(on_error=on_error)
inputs = [{"name": k, "value": v} for k, v in args["inputs"].items()]
result = execute_graph(graph, inputs=inputs, varinfo=varinfo)
> assert result
E assert {}
/usr/local/lib/python3.12/site-packages/ewoksppf/tests/test_ppf_workflow21.py:173: AssertionError
______________________ test_workflow21[False-True-args1] _______________________
args = {'inputs': {'a': 0}, 'return_value': 2}, on_error = True, persist = False
ppf_log_config = None
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_workflow21_False_True_arg1')
@pytest.mark.parametrize(
"args",
[ARG_SUCCESS, ARG_FAILURE],
)
@pytest.mark.parametrize("on_error", [True, False])
@pytest.mark.parametrize("persist", [True, False])
def test_workflow21(args, on_error, persist, ppf_log_config, tmpdir):
"""Test conditions in output nodes"""
if persist:
varinfo = {"root_uri": str(tmpdir)}
else:
varinfo = None
graph = workflow21(on_error=on_error)
inputs = [{"name": k, "value": v} for k, v in args["inputs"].items()]
result = execute_graph(graph, inputs=inputs, varinfo=varinfo)
> assert result
E assert {}
/usr/local/lib/python3.12/site-packages/ewoksppf/tests/test_ppf_workflow21.py:173: AssertionError
=========================== short test summary info ============================
SKIPPED [2] ../../../../../../usr/local/lib/python3.12/site-packages/ewoksppf/tests/test_examples.py:12: Self-triggering workflow execution is inconsistent: https://github.com/ewoks-kit/ewoksppf/issues/16
SKIPPED [2] ../../../../../../usr/local/lib/python3.12/site-packages/ewoksppf/tests/test_ppf_workflow23.py:83: Conditional branches that merge again are not handled yet
FAILED ../tests/test_ppf_workflow21.py::test_workflow21[True-True-args1] - assert {}
FAILED ../tests/test_ppf_workflow21.py::test_workflow21[False-True-args1] - assert {}