mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-14 04:05:31 +00:00
pyl and fixed tests
This commit is contained in:
parent
10fec9e862
commit
9655aa8a94
@ -674,8 +674,8 @@ def process_instance_task_list(
|
|||||||
for task_model in task_models:
|
for task_model in task_models:
|
||||||
if task_model.bpmn_identifier not in task_model_list:
|
if task_model.bpmn_identifier not in task_model_list:
|
||||||
task_model_list[task_model.bpmn_identifier] = task_model
|
task_model_list[task_model.bpmn_identifier] = task_model
|
||||||
|
|
||||||
task_models = list(task_model_list.values())
|
task_models = list(task_model_list.values())
|
||||||
|
|
||||||
if to_task_model is not None:
|
if to_task_model is not None:
|
||||||
task_models_dict = json.loads(current_app.json.dumps(task_models))
|
task_models_dict = json.loads(current_app.json.dumps(task_models))
|
||||||
for task_model in task_models_dict:
|
for task_model in task_models_dict:
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
"""Test_process_instance_processor."""
|
"""Test_process_instance_processor."""
|
||||||
from uuid import UUID
|
from uuid import UUID
|
||||||
from spiffworkflow_backend.models.db import db
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from flask import g
|
from flask import g
|
||||||
@ -13,6 +12,7 @@ from tests.spiffworkflow_backend.helpers.test_data import load_test_spec
|
|||||||
|
|
||||||
from spiffworkflow_backend.exceptions.api_error import ApiError
|
from spiffworkflow_backend.exceptions.api_error import ApiError
|
||||||
from spiffworkflow_backend.models.bpmn_process import BpmnProcessModel
|
from spiffworkflow_backend.models.bpmn_process import BpmnProcessModel
|
||||||
|
from spiffworkflow_backend.models.db import db
|
||||||
from spiffworkflow_backend.models.group import GroupModel
|
from spiffworkflow_backend.models.group import GroupModel
|
||||||
from spiffworkflow_backend.models.process_instance import ProcessInstanceModel
|
from spiffworkflow_backend.models.process_instance import ProcessInstanceModel
|
||||||
from spiffworkflow_backend.models.process_instance import ProcessInstanceStatus
|
from spiffworkflow_backend.models.process_instance import ProcessInstanceStatus
|
||||||
@ -365,7 +365,9 @@ class TestProcessInstanceProcessor(BaseTest):
|
|||||||
|
|
||||||
# make sure we reset to the task we expected
|
# make sure we reset to the task we expected
|
||||||
ready_or_waiting_tasks = processor.get_all_ready_or_waiting_tasks()
|
ready_or_waiting_tasks = processor.get_all_ready_or_waiting_tasks()
|
||||||
top_level_subprocess_script_spiff_task = next(task for task in ready_or_waiting_tasks if task.task_spec.name == "top_level_subprocess_script")
|
top_level_subprocess_script_spiff_task = next(
|
||||||
|
task for task in ready_or_waiting_tasks if task.task_spec.name == "top_level_subprocess_script"
|
||||||
|
)
|
||||||
assert top_level_subprocess_script_spiff_task is not None
|
assert top_level_subprocess_script_spiff_task is not None
|
||||||
processor.resume()
|
processor.resume()
|
||||||
processor.do_engine_steps(save=True)
|
processor.do_engine_steps(save=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user