About Resetting Email List in the Tests
When you work with emails in the tests, make sure to reset the outbox before testing any new sent emails. Otherwise you might have some trash from previous test cases.
from django.core import mail
mail.outbox = []
Tips and Tricks Programming Testing Django 5.2 Django 4.2 Django 3.2
Also by me
Django Messaging 🎅🏼
For Django-based social platforms.
Django Paddle Subscriptions 🎅🏼
For Django-based SaaS projects.
Django GDPR Cookie Consent 🎅🏼
For Django websites that use cookies.