scaffold of new test
This commit is contained in:
parent
5946bd9d05
commit
f5e18f7b5b
|
@ -1,9 +1,11 @@
|
||||||
"""Test_process_instance_processor."""
|
"""Test_process_instance_processor."""
|
||||||
|
from SpiffWorkflow import TaskState
|
||||||
from flask.app import Flask
|
from flask.app import Flask
|
||||||
|
|
||||||
from spiffworkflow_backend.services.process_instance_processor import (
|
from spiffworkflow_backend.services.process_instance_processor import (
|
||||||
ProcessInstanceProcessor,
|
ProcessInstanceProcessor,
|
||||||
)
|
)
|
||||||
|
from tests.spiffworkflow_backend.helpers.test_data import load_test_spec
|
||||||
|
|
||||||
|
|
||||||
# it's not totally obvious we want to keep this test/file
|
# it's not totally obvious we want to keep this test/file
|
||||||
|
@ -16,3 +18,26 @@ def test_script_engine_takes_data_and_returns_expected_results(
|
||||||
|
|
||||||
result = script_engine._evaluate("a", {"a": 1})
|
result = script_engine._evaluate("a", {"a": 1})
|
||||||
assert result == 1
|
assert result == 1
|
||||||
|
|
||||||
|
|
||||||
|
def test_get_bpmn_process_instance_from_process_model_can_acccess_tasks_from_subprocesses(
|
||||||
|
app: Flask,
|
||||||
|
with_db_and_bpmn_file_cleanup: None,
|
||||||
|
) -> None:
|
||||||
|
|
||||||
|
assert True
|
||||||
|
# load_test_spec(
|
||||||
|
# "multiinstance",
|
||||||
|
# process_model_source_directory="spiff_example",
|
||||||
|
# )
|
||||||
|
#
|
||||||
|
# # BpmnWorkflow
|
||||||
|
# bpmn_process_instance = (
|
||||||
|
# ProcessInstanceProcessor.get_bpmn_process_instance_from_process_model(
|
||||||
|
# process_group_identifier='test_process_group_id', process_model_identifier='multiinstance'
|
||||||
|
# )
|
||||||
|
# )
|
||||||
|
#
|
||||||
|
# tasks = bpmn_process_instance.get_tasks(TaskState.ANY_MASK)
|
||||||
|
# task_ids = [t.task_spec.name for t in tasks]
|
||||||
|
# print(f"task_ids: {task_ids}")
|
||||||
|
|
Loading…
Reference in New Issue