summaryrefslogtreecommitdiff
path: root/tests/logging_tests
diff options
context:
space:
mode:
authorJake Howard <git@theorangeone.net>2024-06-09 09:09:07 +0100
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-06-20 09:43:40 +0200
commitaba0e541caaa086f183197eaaca0ac20a730bbe4 (patch)
tree7178521b84f461c95903cbbb5c03b76b9b39a86f /tests/logging_tests
parent9691a00d5839e6137a2716526277013af9ee97ff (diff)
Fixed #35537 -- Changed EmailMessage.attachments and EmailMultiAlternatives.alternatives to use namedtuples.
This makes it more descriptive to pull out the named fields.
Diffstat (limited to 'tests/logging_tests')
-rw-r--r--tests/logging_tests/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/logging_tests/tests.py b/tests/logging_tests/tests.py
index 610bdc1124..e58109fb78 100644
--- a/tests/logging_tests/tests.py
+++ b/tests/logging_tests/tests.py
@@ -467,7 +467,7 @@ class AdminEmailHandlerTest(SimpleTestCase):
msg = mail.outbox[0]
self.assertEqual(msg.subject, "[Django] ERROR: message")
self.assertEqual(len(msg.alternatives), 1)
- body_html = str(msg.alternatives[0][0])
+ body_html = str(msg.alternatives[0].content)
self.assertIn('<div id="traceback">', body_html)
self.assertNotIn("<form", body_html)