From f41fe5f9aefc675b49dc09814887a1ea3372a7c5 Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Mon, 7 Nov 2022 10:33:24 -0500 Subject: [PATCH] fixed process_model_identifier in script_unit_test_create --- .../src/spiffworkflow_backend/routes/process_api_blueprint.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_api_blueprint.py b/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_api_blueprint.py index 5eb5f6cea..7e4d7b3b3 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_api_blueprint.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_api_blueprint.py @@ -1153,7 +1153,8 @@ def script_unit_test_create( "expected_output_json", body ) - process_model = get_process_model(process_model_id, process_group_id) + process_model_identifier = f"{process_group_id}/{process_model_id}" + process_model = get_process_model(process_model_identifier) file = SpecFileService.get_files(process_model, process_model.primary_file_name)[0] if file is None: raise ApiError(