mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
Fixes args handling
This commit is contained in:
parent
14784d5832
commit
3f6e3a2750
@ -165,7 +165,7 @@ class TestParserLive(TestCase):
|
|||||||
|
|
||||||
pdf_path = self.util_call_with_backoff(
|
pdf_path = self.util_call_with_backoff(
|
||||||
self.parser.generate_pdf,
|
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))
|
self.assertTrue(os.path.isfile(pdf_path))
|
||||||
|
|
||||||
@ -194,7 +194,7 @@ class TestParserLive(TestCase):
|
|||||||
|
|
||||||
with open(pdf_path, "wb") as file:
|
with open(pdf_path, "wb") as file:
|
||||||
file.write(
|
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)
|
extracted = extract_text(pdf_path)
|
||||||
@ -225,7 +225,7 @@ class TestParserLive(TestCase):
|
|||||||
|
|
||||||
with open(pdf_path, "wb") as file:
|
with open(pdf_path, "wb") as file:
|
||||||
file.write(
|
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(
|
converted = os.path.join(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user