From baf60e9cc9c548d37b94bbf0bad344d959ab178a Mon Sep 17 00:00:00 2001 From: jasquat Date: Wed, 18 Jan 2023 09:43:19 -0500 Subject: [PATCH] use the correct windows path separator in test file --- spiffworkflow-backend/tests/data/xml_with_entity/invoice.bpmn | 2 +- .../tests/spiffworkflow_backend/unit/test_spec_file_service.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/spiffworkflow-backend/tests/data/xml_with_entity/invoice.bpmn b/spiffworkflow-backend/tests/data/xml_with_entity/invoice.bpmn index 44216f1e3..d002979e9 100644 --- a/spiffworkflow-backend/tests/data/xml_with_entity/invoice.bpmn +++ b/spiffworkflow-backend/tests/data/xml_with_entity/invoice.bpmn @@ -1,5 +1,5 @@ - ]> + ]> John &ent; diff --git a/spiffworkflow-backend/tests/spiffworkflow_backend/unit/test_spec_file_service.py b/spiffworkflow-backend/tests/spiffworkflow_backend/unit/test_spec_file_service.py index 506713cae..fad5a41af 100644 --- a/spiffworkflow-backend/tests/spiffworkflow_backend/unit/test_spec_file_service.py +++ b/spiffworkflow-backend/tests/spiffworkflow_backend/unit/test_spec_file_service.py @@ -249,6 +249,9 @@ class TestSpecFileService(BaseTest): tmp_file = os.path.normpath( self.get_test_data_file_full_path("file_to_inject", "xml_with_entity") ) + + # add the file: with the correct separator for windows + tmp_file = f"file:{os.path.sep}{tmp_file}" file_contents = self.get_test_data_file_contents( "invoice.bpmn", "xml_with_entity" )