Exemplo n.º 1
0
 def test_fast_widget_runner(self):
     w = Widget.objects.get(id=6)
     wr = WidgetRunner(w,workflow_runner=WorkflowRunner(w.workflow,clean=False))
     wr.run()
     wid = Widget.objects.get(id=6)
     o = wid.outputs.all()[0].value
     self.assertEqual(o,[20,40,60,80])
Exemplo n.º 2
0
 def test_fast_widget_runner_cv(self):
     w = Widget.objects.get(id=16)
     wr = WidgetRunner(w,workflow_runner=WorkflowRunner(w.workflow,clean=False))
     wr.run()
     wid = Widget.objects.get(id=16)
     o = wid.outputs.all()[0].value
     self.assertEqual(o,[[[[u'2'], [u'1']], [u'3'], 1],
                         [[[u'3'], [u'1']], [u'2'], 1],
                         [[[u'3'], [u'2']], [u'1'], 1]])
Exemplo n.º 3
0
 def test_fast_widget_runner(self):
     w = Widget.objects.get(id=6)
     wr = WidgetRunner(w,
                       workflow_runner=WorkflowRunner(w.workflow,
                                                      clean=False),
                       standalone=True)
     wr.run()
     wid = Widget.objects.get(id=6)
     o = wid.outputs.all()[0].value
     self.assertEqual(o, [20, 40, 60, 80])
Exemplo n.º 4
0
 def test_fast_widget_runner_cv(self):
     w = Widget.objects.get(id=16)
     wr = WidgetRunner(w,
                       workflow_runner=WorkflowRunner(w.workflow,
                                                      clean=False),
                       standalone=True)
     wr.run()
     wid = Widget.objects.get(id=16)
     o = wid.outputs.all()[0].value
     self.assertEqual(
         o, [[[[u'2'], [u'1']], [u'3'], 1], [[[u'3'], [u'1']], [u'2'], 1],
             [[[u'3'], [u'2']], [u'1'], 1]])