Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fixes args handling

Trenton Holmes3f6e3a275002
diff --git a/src/paperless_mail/tests/test_parsers_live.py b/src/paperless_mail/tests/test_parsers_live.py
index 39c3adda5..264f99316 100644
--- a/src/paperless_mail/tests/test_parsers_live.py
+++ b/src/paperless_mail/tests/test_parsers_live.py
@@ -165,7 +165,7 @@ class TestParserLive(TestCase):
pdf_path = self.util_call_with_backoff(
self.parser.generate_pdf,
- os.path.join(self.SAMPLE_FILES, "html.eml"),
+ [os.path.join(self.SAMPLE_FILES, "html.eml")],
)
self.assertTrue(os.path.isfile(pdf_path))
@@ -194,7 +194,7 @@ class TestParserLive(TestCase):
with open(pdf_path, "wb") as file:
file.write(
- self.util_call_with_backoff(self.parser.generate_pdf_from_mail, mail),
+ self.util_call_with_backoff(self.parser.generate_pdf_from_mail, [mail]),
)
extracted = extract_text(pdf_path)
@@ -225,7 +225,7 @@ class TestParserLive(TestCase):
with open(pdf_path, "wb") as file:
file.write(
- self.util_call_with_backoff(self.parser.generate_pdf_from_mail, mail),
+ self.util_call_with_backoff(self.parser.generate_pdf_from_mail, [mail]),
)
converted = os.path.join(