Github user mxmrlv commented on a diff in the pull request: https://github.com/apache/incubator-ariatosca/pull/20#discussion_r87997801 --- Diff: tests/context/__init__.py --- @@ -12,3 +12,31 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + +import sys + +import pytest + +from aria.workflows.core import engine + +global_test_holder = {} + + +def op_path(func, module_path=None): + module_path = module_path or sys.modules[__name__].__name__ + return '{0}.{1}'.format(module_path, func.__name__) + + +def op_name(actor, operation_name): + return '{name}.{actor.id}'.format(name=operation_name, actor=actor) + + +def execute(workflow_func, workflow_context, executor): + graph = workflow_func(ctx=workflow_context) + eng = engine.Engine(executor=executor, workflow_context=workflow_context, tasks_graph=graph) + eng.execute() + + +@pytest.fixture(autouse=True) --- End diff -- move to module
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---