mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-09 17:55:48 +00:00
883e65384f
git-subtree-dir: spiffworkflow-backend git-subtree-split: 50f28073add91265f00826bd175c8b2fff76cdc5
17 lines
662 B
Python
17 lines
662 B
Python
"""Process Model."""
|
|
from flask.app import Flask
|
|
|
|
from spiffworkflow_backend.models.process_group import ProcessGroup
|
|
from spiffworkflow_backend.services.process_model_service import ProcessModelService
|
|
|
|
|
|
def test_there_is_at_least_one_group_after_we_create_one(
|
|
app: Flask, with_db_and_bpmn_file_cleanup: None
|
|
) -> None:
|
|
"""Test_there_is_at_least_one_group_after_we_create_one."""
|
|
process_model_service = ProcessModelService()
|
|
process_group = ProcessGroup(id="hey", display_name="sure")
|
|
process_model_service.add_process_group(process_group)
|
|
process_groups = ProcessModelService().get_process_groups()
|
|
assert len(process_groups) > 0
|