mirror of
https://github.com/sartography/spiffworkflow-backend.git
synced 2025-02-23 21:08:18 +00:00
Fix python doc strings
This commit is contained in:
parent
17d1a6dcbb
commit
8831f122eb
@ -44,7 +44,8 @@ class ProcessModelService(FileSystemService):
|
||||
|
||||
def process_model_delete(self, process_model_id: str):
|
||||
"""Delete Procecss Model."""
|
||||
instances = ProcessInstanceModel.query.filter(ProcessInstanceModel.process_model_identifier == process_model_id).all()
|
||||
instances = ProcessInstanceModel.query.filter(
|
||||
ProcessInstanceModel.process_model_identifier == process_model_id).all()
|
||||
if len(instances) > 0:
|
||||
raise ApiError(code='existing_instances',
|
||||
message=f'We cannot delete the model `{process_model_id}`, there are existing instances that depend on it.')
|
||||
|
@ -75,6 +75,7 @@ def test_process_model_delete(
|
||||
def test_process_model_delete_with_instances(
|
||||
app: Flask, client: FlaskClient, with_bpmn_file_cleanup: None
|
||||
):
|
||||
"""Test_process_model_delete_with_instances."""
|
||||
db.session.query(ProcessInstanceModel).delete()
|
||||
db.session.commit()
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
"""test_file."""
|
||||
"""Test_file."""
|
||||
|
||||
from spiffworkflow_backend.models.file import File
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user