1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00
django/tests/mail
Mike Edmunds bddd35cb1a Refs #35581 -- Improved reporting for failing tests in mail tests.
- Converted HeadersCheckMixin to MailTestsMixin for all shared helpers:
  - Hoisted assertStartsWith() from BaseEmailBackendTests.
  - Added matching assertEndsWith().
  - Hoisted get_decoded_attachments() from MailTests.
  - Improved failure reporting in assertMessageHasHeaders().
- Used unittest subTest() to improve handling of compound test cases.
- Replaced `assertTrue(test on string)` with custom assertions,
  so that failure reporting is more informative than `True != False`.
2024-12-03 11:17:12 +01:00
..
attachments
__init__.py
custombackend.py Fixed CVE-2024-45231 -- Avoided server error on password reset when email sending fails. 2024-09-03 09:22:32 -03:00
test_sendtestemail.py Added test for the sendtestemail command when no recipients are given. 2024-01-24 15:02:42 -03:00
tests.py Refs #35581 -- Improved reporting for failing tests in mail tests. 2024-12-03 11:17:12 +01:00