Commit e1f9d47b authored by Janez K's avatar Janez K

tests

parent 9cbaa988
......@@ -38,4 +38,9 @@ def runWidget(widget,offline):
@task()
def runWidgetAsync(widget):
widget.run(True)
\ No newline at end of file
widget.run(True)
@task()
def runTest(stream,workflow):
stream.execute(workflow=w)
return
\ No newline at end of file
......@@ -1345,7 +1345,10 @@ def widget_inputs(request, widget_id):
def workflow_results(request,workflow_id):
w = get_object_or_404(Workflow, pk=workflow_id)
from streams.models import Stream
from workflows.tasks import runTest
s = Stream()
a = runTest.delay(s,w)
a.wait()
#return s.execute(workflow=w)
return {"result":"done!"}
......
Markdown is supported
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