Fixes a long standing bug in this test where a whole page was missing from the expected

This commit is contained in:
Trenton H 2023-12-04 11:32:22 -08:00
parent 927d0cebe7
commit 3d8e40fa63
2 changed files with 3 additions and 1 deletions

View File

@ -215,6 +215,8 @@ class MailDocumentParser(DocumentParser):
mail_message.attachments, mail_message.attachments,
) )
self.log.debug("Merging email text and HTML content into single PDF")
with GotenbergClient( with GotenbergClient(
host=settings.TIKA_GOTENBERG_ENDPOINT, host=settings.TIKA_GOTENBERG_ENDPOINT,
timeout=settings.CELERY_TASK_TIME_LIMIT, timeout=settings.CELERY_TASK_TIME_LIMIT,
@ -348,7 +350,7 @@ class MailDocumentParser(DocumentParser):
text = compiled_close.sub("</div", text) text = compiled_close.sub("</div", text)
return text return text
self.log.info("Converting html to PDF") self.log.info("Converting message html to PDF")
tempdir = Path(self.tempdir) tempdir = Path(self.tempdir)