From 391134ad333ee80df56487791137955c8f54fe51 Mon Sep 17 00:00:00 2001 From: burnettk Date: Sun, 4 Dec 2022 14:40:34 -0500 Subject: [PATCH] remove dup test process model --- .../tests/data/hello_world/hello_world.bpmn | 6 ++- .../process_instance_metadata.bpmn | 40 ------------------- .../integration/test_process_api.py | 17 ++++---- 3 files changed, 14 insertions(+), 49 deletions(-) delete mode 100644 spiffworkflow-backend/tests/data/test-process-instance-metadata-report/process_instance_metadata.bpmn diff --git a/spiffworkflow-backend/tests/data/hello_world/hello_world.bpmn b/spiffworkflow-backend/tests/data/hello_world/hello_world.bpmn index 1e5bc853..4be5adba 100644 --- a/spiffworkflow-backend/tests/data/hello_world/hello_world.bpmn +++ b/spiffworkflow-backend/tests/data/hello_world/hello_world.bpmn @@ -19,7 +19,11 @@ Flow_0bazl8x Flow_1mcaszp - a = 1 + a = 1 +b = 2 +outer = {} +outer["inner"] = 'sweet1' + Flow_1mcaszp diff --git a/spiffworkflow-backend/tests/data/test-process-instance-metadata-report/process_instance_metadata.bpmn b/spiffworkflow-backend/tests/data/test-process-instance-metadata-report/process_instance_metadata.bpmn deleted file mode 100644 index f371a350..00000000 --- a/spiffworkflow-backend/tests/data/test-process-instance-metadata-report/process_instance_metadata.bpmn +++ /dev/null @@ -1,40 +0,0 @@ - - - - - Flow_0fmt4q1 - - - - Flow_0fmt4q1 - Flow_0hhrkce - save_process_instance_metadata({"key1": "value1", "key2": "value2"}) - - - Flow_0hhrkce - - - - - - - - - - - - - - - - - - - - - - - - - - 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 0b2c254b..a17a3875 100644 --- a/spiffworkflow-backend/tests/spiffworkflow_backend/integration/test_process_api.py +++ b/spiffworkflow-backend/tests/spiffworkflow_backend/integration/test_process_api.py @@ -2563,9 +2563,9 @@ class TestProcessApi(BaseTest): ) -> None: """Test_can_get_process_instance_list_with_report_metadata.""" process_model = load_test_spec( - process_model_id="test-process-instance-metadata-report", - bpmn_file_name="process_instance_metadata.bpmn", - process_model_source_directory="test-process-instance-metadata-report", + process_model_id="save_process_instance_metadata/save_process_instance_metadata", + bpmn_file_name="save_process_instance_metadata.bpmn", + process_model_source_directory="save_process_instance_metadata", ) process_instance = self.create_process_instance_from_process_model( process_model=process_model, user=with_super_admin_user @@ -2576,7 +2576,7 @@ class TestProcessApi(BaseTest): process_instance_metadata = ProcessInstanceMetadataModel.query.filter_by( process_instance_id=process_instance.id ).all() - assert len(process_instance_metadata) == 2 + assert len(process_instance_metadata) == 3 report_metadata = { "columns": [ @@ -2620,9 +2620,9 @@ class TestProcessApi(BaseTest): ) -> None: """Test_can_get_process_instance_list_with_report_metadata.""" process_model = load_test_spec( - process_model_id="test-process-instance-metadata-report", - bpmn_file_name="process_instance_metadata.bpmn", - process_model_source_directory="test-process-instance-metadata-report", + process_model_id="save_process_instance_metadata/save_process_instance_metadata", + bpmn_file_name="save_process_instance_metadata.bpmn", + process_model_source_directory="save_process_instance_metadata", ) process_instance = self.create_process_instance_from_process_model( process_model=process_model, user=with_super_admin_user @@ -2633,7 +2633,7 @@ class TestProcessApi(BaseTest): process_instance_metadata = ProcessInstanceMetadataModel.query.filter_by( process_instance_id=process_instance.id ).all() - assert len(process_instance_metadata) == 2 + assert len(process_instance_metadata) == 3 response = client.get( "/v1.0/process-instances/reports/columns", @@ -2655,4 +2655,5 @@ class TestProcessApi(BaseTest): {"Header": "Status", "accessor": "status", "filterable": False}, {"Header": "key1", "accessor": "key1", "filterable": True}, {"Header": "key2", "accessor": "key2", "filterable": True}, + {"Header": "key3", "accessor": "key3", "filterable": True}, ]