diff options
| author | Mike Edmunds <medmunds@gmail.com> | 2025-02-14 10:58:01 -0800 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-03-21 10:17:57 +0100 |
| commit | e295033144e3085abaf9277d1bb0a6436ce73e01 (patch) | |
| tree | 582ec2ccaf6440a27c5bff5f6b73db2c8e5bd4ea /tests/view_tests | |
| parent | aed303aff57ac990894b6354af001b0e8ea55f71 (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/view_tests')
| -rw-r--r-- | tests/view_tests/tests/test_debug.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/view_tests/tests/test_debug.py b/tests/view_tests/tests/test_debug.py index ba67945d59..a5a1d85e83 100644 --- a/tests/view_tests/tests/test_debug.py +++ b/tests/view_tests/tests/test_debug.py @@ -1451,7 +1451,7 @@ class ExceptionReportTestMixin: """ Asserts that potentially sensitive info are displayed in the email report. """ - with self.settings(ADMINS=[("Admin", "admin@fattie-breakie.com")]): + with self.settings(ADMINS=["admin@example.com"]): mail.outbox = [] # Empty outbox request = self.rf.post("/some_url/", self.breakfast_data) if iscoroutinefunction(view): @@ -1487,7 +1487,7 @@ class ExceptionReportTestMixin: """ Asserts that certain sensitive info are not displayed in the email report. """ - with self.settings(ADMINS=[("Admin", "admin@fattie-breakie.com")]): + with self.settings(ADMINS=["admin@example.com"]): mail.outbox = [] # Empty outbox request = self.rf.post("/some_url/", self.breakfast_data) if iscoroutinefunction(view): @@ -1530,7 +1530,7 @@ class ExceptionReportTestMixin: """ Asserts that no variables or POST parameters are displayed in the email report. """ - with self.settings(ADMINS=[("Admin", "admin@fattie-breakie.com")]): + with self.settings(ADMINS=["admin@example.com"]): mail.outbox = [] # Empty outbox request = self.rf.post("/some_url/", self.breakfast_data) view(request) |
