burnettk 5f2eab770c Squashed 'spiffworkflow-backend/' changes from 5242b7693..1591ba436
1591ba436 black
e0c09896d re-order imports the way backend always used to

git-subtree-dir: spiffworkflow-backend
git-subtree-split: 1591ba436dab5e1db2b37553de38be12ffdb705f
2022-10-31 09:28:03 -04:00

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