diff options
| author | Mike Edmunds <medmunds@gmail.com> | 2024-08-24 12:57:47 -0700 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-12-03 11:17:12 +0100 |
| commit | bddd35cb1a45593935d28dcb08dd69e0bf7c0d2c (patch) | |
| tree | a4e28a45e13f279e57e8e8e833349dd5c8e5959f /tests/model_fields | |
| parent | 871e1ee5ff0b75aee5dd1bd3e88e349ca0ddc60d (diff) | |
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`.
Diffstat (limited to 'tests/model_fields')
0 files changed, 0 insertions, 0 deletions
