summaryrefslogtreecommitdiff
path: root/tests/mail/test_sendtestemail.py
diff options
context:
space:
mode:
authorMike Edmunds <medmunds@gmail.com>2025-02-14 10:58:01 -0800
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-03-21 10:17:57 +0100
commite295033144e3085abaf9277d1bb0a6436ce73e01 (patch)
tree582ec2ccaf6440a27c5bff5f6b73db2c8e5bd4ea /tests/mail/test_sendtestemail.py
parentaed303aff57ac990894b6354af001b0e8ea55f71 (diff)
Fixed #36138 -- Changed ADMINS and MANAGERS settings to lists of strings.
Previously, the ADMINS and MANAGERS settings were lists of (name, address) tuples (where the name had been unused). Deprecated use of tuples. Updated settings value sanity checks, and changed from ValueError to ImproperlyConfigured.
Diffstat (limited to 'tests/mail/test_sendtestemail.py')
-rw-r--r--tests/mail/test_sendtestemail.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/mail/test_sendtestemail.py b/tests/mail/test_sendtestemail.py
index c871f1a299..c7195ba9a1 100644
--- a/tests/mail/test_sendtestemail.py
+++ b/tests/mail/test_sendtestemail.py
@@ -4,14 +4,8 @@ from django.test import SimpleTestCase, override_settings
@override_settings(
- ADMINS=(
- ("Admin", "admin@example.com"),
- ("Admin and Manager", "admin_and_manager@example.com"),
- ),
- MANAGERS=(
- ("Manager", "manager@example.com"),
- ("Admin and Manager", "admin_and_manager@example.com"),
- ),
+ ADMINS=["admin@example.com", "admin_and_manager@example.com"],
+ MANAGERS=["manager@example.com", "admin_and_manager@example.com"],
)
class SendTestEmailManagementCommand(SimpleTestCase):
"""