mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #35537 -- Changed EmailMessage.attachments and EmailMultiAlternatives.alternatives to use namedtuples.
This makes it more descriptive to pull out the named fields.
This commit is contained in:
@@ -1463,7 +1463,7 @@ class ExceptionReportTestMixin:
|
||||
self.assertNotIn("worcestershire", body_plain)
|
||||
|
||||
# Frames vars are shown in html email reports.
|
||||
body_html = str(email.alternatives[0][0])
|
||||
body_html = str(email.alternatives[0].content)
|
||||
self.assertIn("cooked_eggs", body_html)
|
||||
self.assertIn("scrambled", body_html)
|
||||
self.assertIn("sauce", body_html)
|
||||
@@ -1499,7 +1499,7 @@ class ExceptionReportTestMixin:
|
||||
self.assertNotIn("worcestershire", body_plain)
|
||||
|
||||
# Frames vars are shown in html email reports.
|
||||
body_html = str(email.alternatives[0][0])
|
||||
body_html = str(email.alternatives[0].content)
|
||||
self.assertIn("cooked_eggs", body_html)
|
||||
self.assertIn("scrambled", body_html)
|
||||
self.assertIn("sauce", body_html)
|
||||
|
||||
Reference in New Issue
Block a user