summaryrefslogtreecommitdiff
path: root/tests/view_tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/view_tests')
-rw-r--r--tests/view_tests/tests/test_debug.py4
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)