mirror of
https://github.com/sartography/spiffworkflow-backend.git
synced 2025-02-23 21:08:18 +00:00
fix python docstrings
This commit is contained in:
parent
b057eeccd5
commit
f351af5561
@ -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)
|
||||
|
@ -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()
|
||||
|
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user