diff --git a/src/spiffworkflow_backend/routes/process_api_blueprint.py b/src/spiffworkflow_backend/routes/process_api_blueprint.py index fa2b11a5..a787c19d 100644 --- a/src/spiffworkflow_backend/routes/process_api_blueprint.py +++ b/src/spiffworkflow_backend/routes/process_api_blueprint.py @@ -190,7 +190,9 @@ def process_instance_list(process_model_id, page=1, per_page=100): process_instances = ( ProcessInstanceModel.query.filter_by(process_model_identifier=process_model.id) - .order_by(ProcessInstanceModel.start_in_seconds.desc(), ProcessInstanceModel.id.desc()) + .order_by( + ProcessInstanceModel.start_in_seconds.desc(), ProcessInstanceModel.id.desc() + ) .paginate(page, per_page, False) ) diff --git a/src/spiffworkflow_backend/scripts/script.py b/src/spiffworkflow_backend/scripts/script.py index a47395db..113516bc 100644 --- a/src/spiffworkflow_backend/scripts/script.py +++ b/src/spiffworkflow_backend/scripts/script.py @@ -49,6 +49,7 @@ 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. @@ -84,6 +85,7 @@ 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() diff --git a/tests/spiffworkflow_backend/integration/test_process_api.py b/tests/spiffworkflow_backend/integration/test_process_api.py index d437987b..f666d095 100644 --- a/tests/spiffworkflow_backend/integration/test_process_api.py +++ b/tests/spiffworkflow_backend/integration/test_process_api.py @@ -109,8 +109,9 @@ def test_process_group_delete(app, client: FlaskClient, with_bpmn_file_cleanup): assert persisted is not None assert persisted.id == process_group_id - client.delete(f"/v1.0/process-groups/{process_group_id}", - headers=logged_in_headers(user)) + client.delete( + f"/v1.0/process-groups/{process_group_id}", headers=logged_in_headers(user) + ) deleted = ProcessModelService().get_process_group(process_group_id) assert deleted is None @@ -175,15 +176,14 @@ def test_get_file(app, client: FlaskClient, with_bpmn_file_cleanup): def test_get_workflow_from_workflow_spec( - app, - client: FlaskClient, - with_bpmn_file_cleanup + app, client: FlaskClient, with_bpmn_file_cleanup ): """Test_get_workflow_from_workflow_spec.""" user = find_or_create_user() spec = load_test_spec(app, "hello_world") response = client.post( - f"/v1.0/process-models/{spec.process_group_id}/{spec.id}", headers=logged_in_headers(user) + f"/v1.0/process-models/{spec.process_group_id}/{spec.id}", + headers=logged_in_headers(user), ) assert response.status_code == 201 assert "hello_world" == response.json["process_model_identifier"]