Good day, I'm writing a functional test for checking that an email was sent after a record was revised in my project. I placed a print statement to verify that the send_mail function was called within the view that it is called in, and it prints it out at the appropriate time. However, when I check mail.outbox, the email is not in there--nothing is in there. I am using a class that inherits from StaticLiveServerTestCase, so I thought that should automatically handle changing the email setting appropriately. What am I missing?
I did try something else, though. Within the test function, I performed a dummy send_mail call, and mail.outbox was populated with the dummy message. But it is not populated with the message I want to test against. I appreciate any guidance you can offer in this matter. Thanks, Matthew -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/582038f8-58b0-48b5-9bbd-f8e08eff40dfo%40googlegroups.com.