summaryrefslogtreecommitdiff
path: root/tests/logging_tests
diff options
context:
space:
mode:
authordarkryder <sambhav13085@iiitd.ac.in>2015-01-21 22:25:57 +0530
committerTim Graham <timograham@gmail.com>2015-02-03 14:59:45 -0500
commit9ec8aa5e5d42ac4529846f7eae6bf4982800abff (patch)
tree6a1195ff3831031f8207e18e4dcf69015fb4c50c /tests/logging_tests
parent570912a97d5051fa3aeacd9d16c3be9afcf92198 (diff)
downloaddjango-9ec8aa5e5d42ac4529846f7eae6bf4982800abff.tar.gz
Fixed #24149 -- Normalized tuple settings to lists.
Diffstat (limited to 'tests/logging_tests')
-rw-r--r--tests/logging_tests/tests.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/logging_tests/tests.py b/tests/logging_tests/tests.py
index 65b2be4135..3e4c19ece5 100644
--- a/tests/logging_tests/tests.py
+++ b/tests/logging_tests/tests.py
@@ -185,7 +185,7 @@ class AdminEmailHandlerTest(TestCase):
self.assertTrue(admin_email_handler.connection().fail_silently)
@override_settings(
- ADMINS=(('whatever admin', 'admin@example.com'),),
+ ADMINS=[('whatever admin', 'admin@example.com')],
EMAIL_SUBJECT_PREFIX='-SuperAwesomeSubject-'
)
def test_accepts_args(self):
@@ -215,9 +215,9 @@ class AdminEmailHandlerTest(TestCase):
admin_email_handler.filters = orig_filters
@override_settings(
- ADMINS=(('whatever admin', 'admin@example.com'),),
+ ADMINS=[('whatever admin', 'admin@example.com')],
EMAIL_SUBJECT_PREFIX='-SuperAwesomeSubject-',
- INTERNAL_IPS=('127.0.0.1',),
+ INTERNAL_IPS=['127.0.0.1'],
)
def test_accepts_args_and_request(self):
"""
@@ -250,7 +250,7 @@ class AdminEmailHandlerTest(TestCase):
admin_email_handler.filters = orig_filters
@override_settings(
- ADMINS=(('admin', 'admin@example.com'),),
+ ADMINS=[('admin', 'admin@example.com')],
EMAIL_SUBJECT_PREFIX='',
DEBUG=False,
)
@@ -295,7 +295,7 @@ class AdminEmailHandlerTest(TestCase):
self.assertEqual(mail.outbox[0].subject, expected_subject)
@override_settings(
- ADMINS=(('admin', 'admin@example.com'),),
+ ADMINS=[('admin', 'admin@example.com')],
DEBUG=False,
)
def test_uses_custom_email_backend(self):
@@ -327,7 +327,7 @@ class AdminEmailHandlerTest(TestCase):
admin_email_handler.email_backend = orig_email_backend
@override_settings(
- ADMINS=(('whatever admin', 'admin@example.com'),),
+ ADMINS=[('whatever admin', 'admin@example.com')],
)
def test_emit_non_ascii(self):
"""
@@ -347,7 +347,7 @@ class AdminEmailHandlerTest(TestCase):
self.assertIn("path:%s" % url_path, msg.body)
@override_settings(
- MANAGERS=(('manager', 'manager@example.com'),),
+ MANAGERS=[('manager', 'manager@example.com')],
DEBUG=False,
)
def test_customize_send_mail_method(self):
@@ -423,7 +423,7 @@ class SecurityLoggerTest(TestCase):
self.assertEqual(calls[0], 'dubious')
@override_settings(
- ADMINS=(('admin', 'admin@example.com'),),
+ ADMINS=[('admin', 'admin@example.com')],
DEBUG=False,
)
def test_suspicious_email_admins(self):