Skip to content
Snippets Groups Projects
Commit d88b72c2 authored by Charlotte Hausman's avatar Charlotte Hausman
Browse files

tweaks to engine interface and testing skeleton (to be flushed out next week)

parent 6e6eaa8a
No related branches found
No related tags found
1 merge request!86fix CapabilityEngine
Pipeline #608 passed
from workspaces.capability.services.capability_info import CapabilityInfo
from workspaces.capability.services.capability_engine import CapabilityEngine
pytest_plugins = ["testing.utils.conftest"]
"""
Tests for CapabilityEngine
"""
def test_load_engine():
pass
def test_execute():
pass
def test_submit_workflow_request():
pass
......@@ -35,8 +35,6 @@ class CapabilityEngine(CapabilityEngineIF):
def execute(self):
"""
Communicate with workflow service and send a request to run a workflow with given settings
:param execution:
"""
step_sequence = CapabilitySequence.from_str(self.execution.steps)
# Grab value of current step (workflow name)
......
......@@ -101,9 +101,12 @@ class CapabilityEngineIF(ABC):
"""
Executes a prepare and run workflow step of a capability
"""
@abstractmethod
def load_engine(self, execution: CapabilityExecutionIF):
pass
@abstractmethod
def execute(self, execution: CapabilityExecutionIF):
def execute(self):
pass
@abstractmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment