pytest-django
pytest-django copied to clipboard
fix: don't crash if mail.outbox doesn't exist
Fixes https://github.com/pytest-dev/pytest-django/issues/993
It's unlikely I'll write a test.
This fix would be helpful, I currently use the workaround from @wouter-vdb
# see: https://github.com/pytest-dev/pytest-django/issues/993
@pytest.fixture(scope="function", autouse=True)
def _dj_autoclear_mailbox() -> None:
pass