Commit 320b0788 authored by payno's avatar payno
Browse files

fix typo test_ppf_worfklows -> test_ppf_workflows

parent 137941b4
......@@ -3,6 +3,9 @@ from taskgraphlib import assert_taskgraph_result
def workflow1():
"""
workflow with one python actor
"""
nodes = [
{
"id": "Python Actor Test",
......@@ -26,10 +29,3 @@ def workflow1():
}
return graph, expected_results
def test_workflow1(ppf_logging, tmpdir):
varinfo = {"root_uri": str(tmpdir)}
graph, expected = workflow1()
job(graph, varinfo=varinfo)
assert_taskgraph_result(graph, expected, varinfo)
......@@ -154,3 +154,4 @@ def test_workflow11(ppf_logging, tmpdir):
graph, expected = workflow11()
job(graph, varinfo=varinfo)
assert_taskgraph_result(graph, expected, varinfo)
......@@ -102,3 +102,4 @@ def test_workflow13(startvalue, ppf_logging, tmpdir):
graph, expected = workflow13(startvalue, withlastnode_startvalue)
job(graph, varinfo=varinfo)
assert_taskgraph_result(graph, expected, varinfo)
......@@ -3,6 +3,9 @@ from taskgraphlib import assert_taskgraph_result
def workflow2():
"""
workflow with one error handler
"""
nodes = [
{
"id": "Python Error Handler Test",
......@@ -25,12 +28,3 @@ def workflow2():
expected_results = {"Python Error Handler Test": None}
return graph, expected_results
def test_workflow2(ppf_logging, tmpdir):
varinfo = {"root_uri": str(tmpdir)}
graph, expected = workflow2()
result = job(graph, varinfo=varinfo, raise_on_error=False)
assert_taskgraph_result(graph, expected, varinfo)
err_msg = "Runtime error in pythonErrorHandlerTest.py!"
assert result["WorkflowException"]["errorMessage"] == err_msg
......@@ -25,6 +25,10 @@ def submodel1():
def workflow3():
"""
workflow3: first -> submodel1 -> last
submodel1: mytask
"""
nodes = [
{
"id": "first",
......@@ -79,10 +83,3 @@ def workflow3():
}
return graph, expected_results
def test_workflow3(ppf_logging, tmpdir):
varinfo = {"root_uri": str(tmpdir)}
graph, expected = workflow3()
job(graph, varinfo=varinfo)
assert_taskgraph_result(graph, expected, varinfo)
......@@ -42,7 +42,7 @@ def workflow9():
"nodes": nodes,
}
# addtask3 will not be executed explicitely but it represents
# addtask3 will not be executed explicitly but it represents
# the same task instance as addtask2 (same task hash). So it
# will appear as "done" and have a result.
expected_results = {
......
from tests.test_ppf_worfklows.CommonPrepareExperiment import CommonPrepareExperiment
from tests.test_ppf_workflows.CommonPrepareExperiment import CommonPrepareExperiment
def TroubleShooting(inData):
......
......@@ -3,7 +3,7 @@ import sys
import unittest
from esrf2pypushflow import job
from tests.test_ppf_worfklows.TroubleShooting import TroubleShooting
from tests.test_ppf_workflows.TroubleShooting import TroubleShooting
# Python path to BES mx modules
sys.path.insert(
......
Supports Markdown
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