fix python docstrings

This commit is contained in:
mike cullerton 2022-06-10 10:32:45 -04:00
parent b057eeccd5
commit f351af5561
3 changed files with 3 additions and 2 deletions

View File

@ -90,10 +90,12 @@ def process_model_delete(process_group_id, process_model_id):
def process_model_update(process_group_id, process_model_id, body):
"""Process_model_update."""
process_model = ProcessModelInfoSchema().load(body)
ProcessModelService().update_spec(process_model)
return ProcessModelInfoSchema().dump(process_model)
def process_model_show(process_group_id, process_model_id):
"""Process_model_show."""
process_model = ProcessModelService().get_spec(process_model_id, process_group_id)

View File

@ -49,7 +49,6 @@ class Script:
We may be able to remove the task for each of these calls if we are not using it other than potentially
updating the task data.
"""
def make_closure(subclass, task, workflow_id):
"""Yes - this is black magic.
@ -85,7 +84,6 @@ class Script:
We may be able to remove the task for each of these calls if we are not using it other than potentially
updating the task data.
"""
def make_closure_validate(subclass, task, workflow_id):
"""Make_closure_validate."""
instance = subclass()

View File

@ -61,6 +61,7 @@ def test_process_model_delete(app, client: FlaskClient, with_bpmn_file_cleanup):
def test_process_model_update(app, client: FlaskClient, with_bpmn_file_cleanup):
"""Test_process_model_update."""
create_process_model(app, client)
process_model = ProcessModelService().get_spec("make_cookies")
assert process_model.id == 'make_cookies'