mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #21288 -- Fixed E126 pep8 warnings
This commit is contained in:
parent
a3690168cb
commit
b289fcf1bf
80 changed files with 646 additions and 634 deletions
|
@ -169,8 +169,8 @@ class AdminEmailHandlerTest(TestCase):
|
|||
self.assertTrue(admin_email_handler.connection().fail_silently)
|
||||
|
||||
@override_settings(
|
||||
ADMINS=(('whatever admin', 'admin@example.com'),),
|
||||
EMAIL_SUBJECT_PREFIX='-SuperAwesomeSubject-'
|
||||
ADMINS=(('whatever admin', 'admin@example.com'),),
|
||||
EMAIL_SUBJECT_PREFIX='-SuperAwesomeSubject-'
|
||||
)
|
||||
def test_accepts_args(self):
|
||||
"""
|
||||
|
@ -199,9 +199,9 @@ class AdminEmailHandlerTest(TestCase):
|
|||
admin_email_handler.filters = orig_filters
|
||||
|
||||
@override_settings(
|
||||
ADMINS=(('whatever admin', 'admin@example.com'),),
|
||||
EMAIL_SUBJECT_PREFIX='-SuperAwesomeSubject-',
|
||||
INTERNAL_IPS=('127.0.0.1',),
|
||||
ADMINS=(('whatever admin', 'admin@example.com'),),
|
||||
EMAIL_SUBJECT_PREFIX='-SuperAwesomeSubject-',
|
||||
INTERNAL_IPS=('127.0.0.1',),
|
||||
)
|
||||
def test_accepts_args_and_request(self):
|
||||
"""
|
||||
|
@ -234,9 +234,9 @@ class AdminEmailHandlerTest(TestCase):
|
|||
admin_email_handler.filters = orig_filters
|
||||
|
||||
@override_settings(
|
||||
ADMINS=(('admin', 'admin@example.com'),),
|
||||
EMAIL_SUBJECT_PREFIX='',
|
||||
DEBUG=False,
|
||||
ADMINS=(('admin', 'admin@example.com'),),
|
||||
EMAIL_SUBJECT_PREFIX='',
|
||||
DEBUG=False,
|
||||
)
|
||||
def test_subject_accepts_newlines(self):
|
||||
"""
|
||||
|
@ -257,9 +257,9 @@ class AdminEmailHandlerTest(TestCase):
|
|||
self.assertEqual(mail.outbox[0].subject, expected_subject)
|
||||
|
||||
@override_settings(
|
||||
ADMINS=(('admin', 'admin@example.com'),),
|
||||
EMAIL_SUBJECT_PREFIX='',
|
||||
DEBUG=False,
|
||||
ADMINS=(('admin', 'admin@example.com'),),
|
||||
EMAIL_SUBJECT_PREFIX='',
|
||||
DEBUG=False,
|
||||
)
|
||||
def test_truncate_subject(self):
|
||||
"""
|
||||
|
@ -279,8 +279,8 @@ class AdminEmailHandlerTest(TestCase):
|
|||
self.assertEqual(mail.outbox[0].subject, expected_subject)
|
||||
|
||||
@override_settings(
|
||||
ADMINS=(('admin', 'admin@example.com'),),
|
||||
DEBUG=False,
|
||||
ADMINS=(('admin', 'admin@example.com'),),
|
||||
DEBUG=False,
|
||||
)
|
||||
def test_uses_custom_email_backend(self):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue