mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Added the required verbosity reference
This commit is contained in:
parent
2421f559be
commit
840472071c
@ -44,6 +44,8 @@ class Message(Renderable):
|
||||
https://www.ianlewis.org/en/parsing-email-attachments-python
|
||||
"""
|
||||
|
||||
self.verbosity = verbosity
|
||||
|
||||
self.subject = None
|
||||
self.time = None
|
||||
self.attachment = None
|
||||
|
@ -27,7 +27,7 @@ class TestMessage(TestCase):
|
||||
|
||||
with open(self.sample, "rb") as f:
|
||||
|
||||
message = Message(f.read())
|
||||
message = Message(f.read(), verbosity=0)
|
||||
|
||||
self.assertTrue(message)
|
||||
self.assertEqual(message.subject, "Test 0")
|
||||
|
Loading…
x
Reference in New Issue
Block a user