mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-10 06:48:19 +02:00
make tox -e flake8 work
This commit is contained in:
parent
40263b6670
commit
b6b903c025
7 changed files with 17 additions and 23 deletions
|
|
@ -1,6 +1,5 @@
|
|||
import gzip
|
||||
import os.path
|
||||
import sys
|
||||
|
||||
import copy
|
||||
from unittest import mock
|
||||
|
|
@ -182,7 +181,7 @@ class TestProcessEmail(EmailMessageTestCase):
|
|||
# it's ok to call as_string() before passing email_object
|
||||
# to _get_dehydrated_message()
|
||||
email_object.as_string()
|
||||
except:
|
||||
except Exception:
|
||||
it = 'do not works'
|
||||
|
||||
success = True
|
||||
|
|
@ -227,7 +226,7 @@ class TestProcessEmail(EmailMessageTestCase):
|
|||
try:
|
||||
# here as_string raises UnicodeEncodeError
|
||||
str_msg = message.as_string()
|
||||
except:
|
||||
except Exception:
|
||||
success = False
|
||||
|
||||
msg.set_body(str_msg)
|
||||
|
|
@ -423,8 +422,6 @@ class TestProcessEmail(EmailMessageTestCase):
|
|||
|
||||
msg = self.mailbox.process_incoming_message(message)
|
||||
|
||||
actual_email_object = msg.get_email_object()
|
||||
|
||||
self.assertTrue(msg.eml.name.endswith('.eml.gz'))
|
||||
|
||||
with gzip.open(msg.eml.name, 'rb') as f:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue