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 567e89d1c7
commit 30372b0e85
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):