use the correct windows path separator in test file

This commit is contained in:
jasquat 2023-01-18 09:43:19 -05:00
parent e24a62b4ab
commit baf60e9cc9
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<!--?xml version="1.0" ?-->
<!DOCTYPE replace [<!ENTITY ent SYSTEM "file://{{FULL_PATH_TO_FILE}}"> ]>
<!DOCTYPE replace [<!ENTITY ent SYSTEM "{{FULL_PATH_TO_FILE}}"> ]>
<userInfo>
<firstName>John</firstName>
<lastName>&ent;</lastName>

View File

@ -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"
)