add tests for mail_to_html and generate_pdf_from_mail

This commit is contained in:
phail
2022-10-23 17:18:10 +02:00
parent 6854896708
commit 9d6b725fa1
3 changed files with 92 additions and 1 deletions

View File

@@ -191,7 +191,7 @@ class MailDocumentParser(DocumentParser):
return pdf_path
@staticmethod
def mail_to_html(mail):
def mail_to_html(mail) -> StringIO:
data = {}
def clean_html(text: str):