Ejemplo n.º 1
0
 def test_file_inputs_python(self):
     mock = tasks.file_python_inputs_mock
     h = ExecutionHandler()
     _task = OrcaTask(mock, h.resolve_task_inputs(mock))
     h.handle_python(_task)
     assert 'result' in _task.locals
     assert _task.locals['result'] == 25
Ejemplo n.º 2
0
 def test_inline_python(self):
     mock = tasks.inline_python_mock
     h = ExecutionHandler()
     _task = OrcaTask(mock, h.resolve_task_inputs(mock))
     h.handle_python(_task)
     assert 'greeting' in _task.locals
     assert _task.locals['greeting'] == 'Hello World'