From 0da69d1e05441e194f96c5f79056f7d23b9bcb03 Mon Sep 17 00:00:00 2001 From: jasquat Date: Wed, 25 Jan 2023 16:20:55 -0500 Subject: [PATCH] ensure we are passing the primary file name to the delete file test --- .../spiffworkflow_backend/integration/test_process_api.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spiffworkflow-backend/tests/spiffworkflow_backend/integration/test_process_api.py b/spiffworkflow-backend/tests/spiffworkflow_backend/integration/test_process_api.py index 7213e31c..cd1eaee5 100644 --- a/spiffworkflow-backend/tests/spiffworkflow_backend/integration/test_process_api.py +++ b/spiffworkflow-backend/tests/spiffworkflow_backend/integration/test_process_api.py @@ -932,10 +932,13 @@ class TestProcessApi(BaseTest): process_model_identifier = self.create_group_and_model_with_bpmn( client, with_super_admin_user ) + process_model = ProcessModelService.get_process_model( + process_model_id=process_model_identifier + ) modified_process_model_identifier = process_model_identifier.replace("/", ":") response = client.delete( - f"/v1.0/process-models/{modified_process_model_identifier}/files/random_fact.bpmn", + f"/v1.0/process-models/{modified_process_model_identifier}/files/{process_model.primary_file_name}", follow_redirects=True, headers=self.logged_in_headers(with_super_admin_user), )