1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #30604 -- Made mail_admins()/mail_managers() raise ValueError if ADMINS/MANAGERS is set incorrectly.

This commit is contained in:
Hasan Ramezani
2019-06-29 01:50:43 +02:00
committed by Mariusz Felisiak
parent 29240a9952
commit 090ca6512f
3 changed files with 22 additions and 1 deletions

View File

@@ -340,7 +340,7 @@ class CommonMiddlewareTest(SimpleTestCase):
@override_settings(
IGNORABLE_404_URLS=[re.compile(r'foo')],
MANAGERS=['PHB@dilbert.com'],
MANAGERS=[('PHD', 'PHB@dilbert.com')],
)
class BrokenLinkEmailsMiddlewareTest(SimpleTestCase):