#36953: Refactor Django mail tests
-------------------------------------+-------------------------------------
     Reporter:  Mike Edmunds         |                    Owner:  Mike
         Type:                       |  Edmunds
  Cleanup/optimization               |                   Status:  assigned
    Component:  Core (Mail)          |                  Version:  6.0
     Severity:  Normal               |               Resolution:
     Keywords:  tests                |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Jacob Walls <jacobtylerwalls@…>):

 In [changeset:"3ef48ca6c10830914b09abd20ef48a705e1fbfcd" 3ef48ca]:
 {{{#!CommitTicketReference repository=""
 revision="3ef48ca6c10830914b09abd20ef48a705e1fbfcd"
 Refs #36953 -- Moved non-backend-dependent BaseEmailBackendTests.

 Relocated BaseEmailBackendTests that are _not_ dependent on the email
 backend.

 - In general, moved test cases to EmailMessageTests or SendMailTests
   as appropriate, and changed them to work with the testing outbox.

 - Replaced BaseEmailBackendTests.test_send_verbose_name() with
   EmailMessageTests.test_unicode_display_name_in_from_email().
   (EmailMessageTests.test_address_header_handling() also partly covers
   the behavior, as well as Python's own message serialization tests.)

 - Removed BaseEmailBackendTests.test_message_cc_header(), which was
   already covered by EmailMessageTests.test_cc*() (and Python's own
   message serialization tests).

 - Replaced BaseEmailBackendTests.test_idn_send() with
   EmailMessageTests.test_idn_addresses() to cover from_email and cc.
   (EmailMessageTests.test_address_header_handling() already covered to.)

 - Removed BaseEmailBackendTests.test_recipient_without_domain(), which
   was partly covered by EmailMessageTests.test_localpart_only_address().
   Updated the latter to cover a localpart-only from_email.

 - Updated docstrings and comments to clarify a few tests that _do_
   depend on the email backend.
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36953#comment:16>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019d7c9b698c-0cd08b17-5229-4457-8bb6-140dbf8d2447-000000%40eu-central-1.amazonses.com.

Reply via email to