mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-03-01 09:30:46 +00:00
2cb3fb27e2 pyl 46a590749d pulled in subtrees and resolved conflicts w/ burnettk 1dcad72629 Report URL fixes (#29) 131dbeb3cf oops c50c85edaf mypy fixes 3735b71e06 removed duplicate code ba08826c65 modify process_groups_list so it can process any group path, not just the root process_groups_list now takes an optional group path 1e09c95520 renamed and reordered some methods in base_test.py dfa79360c4 Merge branch 'main' into feature/nested-groups-2 450a8d0757 Delete groups now checks for running instances in nested models also, pyl c814e991a0 use error as a status instead of faulted w/ burnettk 3211e7a49e fixed up the process instance show page and moved contents of scss to css file and load that last w/ burnettk git-subtree-dir: spiffworkflow-backend git-subtree-split: 2cb3fb27e200e211965175914c01f7fd7290aa75
40 lines
1.3 KiB
Python
40 lines
1.3 KiB
Python
"""Test_various_bpmn_constructs."""
|
|
from flask.app import Flask
|
|
from flask.testing import FlaskClient
|
|
from tests.spiffworkflow_backend.helpers.base_test import BaseTest
|
|
|
|
from spiffworkflow_backend.models.user import UserModel
|
|
from spiffworkflow_backend.services.process_instance_processor import (
|
|
ProcessInstanceProcessor,
|
|
)
|
|
from spiffworkflow_backend.services.process_model_service import ProcessModelService
|
|
|
|
|
|
class TestVariousBpmnConstructs(BaseTest):
|
|
"""TestVariousBpmnConstructs."""
|
|
|
|
def test_running_process_with_timer_intermediate_catch_event(
|
|
self,
|
|
app: Flask,
|
|
client: FlaskClient,
|
|
with_db_and_bpmn_file_cleanup: None,
|
|
with_super_admin_user: UserModel,
|
|
) -> None:
|
|
"""Test_running_process_with_timer_intermediate_catch_event."""
|
|
process_model_identifier = self.create_group_and_model_with_bpmn(
|
|
client,
|
|
with_super_admin_user,
|
|
"test_group",
|
|
"timer_intermediate_catch_event",
|
|
)
|
|
|
|
process_model = ProcessModelService().get_process_model(
|
|
process_model_id=process_model_identifier
|
|
)
|
|
|
|
process_instance = self.create_process_instance_from_process_model(
|
|
process_model
|
|
)
|
|
processor = ProcessInstanceProcessor(process_instance)
|
|
processor.do_engine_steps(save=True)
|