diff options
| author | Jake Howard <git@theorangeone.net> | 2024-06-09 09:09:07 +0100 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-06-20 09:43:40 +0200 |
| commit | aba0e541caaa086f183197eaaca0ac20a730bbe4 (patch) | |
| tree | 7178521b84f461c95903cbbb5c03b76b9b39a86f /tests/view_tests | |
| parent | 9691a00d5839e6137a2716526277013af9ee97ff (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/view_tests')
| -rw-r--r-- | tests/view_tests/tests/test_debug.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/view_tests/tests/test_debug.py b/tests/view_tests/tests/test_debug.py index 45a0dc70ee..9383c0d873 100644 --- a/tests/view_tests/tests/test_debug.py +++ b/tests/view_tests/tests/test_debug.py @@ -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) |
