From 74ed5502923f2625f675dcc5014caba9762984fb Mon Sep 17 00:00:00 2001 From: dandds Date: Thu, 10 Jan 2019 11:37:26 -0500 Subject: [PATCH] fix ampersands when comparing docx output in tests --- tests/routes/task_orders/test_index.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/routes/task_orders/test_index.py b/tests/routes/task_orders/test_index.py index f5d81938..fa30e592 100644 --- a/tests/routes/task_orders/test_index.py +++ b/tests/routes/task_orders/test_index.py @@ -9,7 +9,9 @@ from tests.factories import TaskOrderFactory, WorkspaceFactory, UserFactory def xml_translated(val): - return re.sub("'", "'", str(val)) + val = re.sub("'", "'", str(val)) + val = re.sub(" & ", " & ", str(val)) + return val def test_download_summary(client, user_session):