pytest-django icon indicating copy to clipboard operation
pytest-django copied to clipboard

fix: don't crash if mail.outbox doesn't exist

Open symwell opened this issue 3 years ago • 2 comments

Fixes https://github.com/pytest-dev/pytest-django/issues/993

symwell avatar Oct 07 '22 14:10 symwell

It's unlikely I'll write a test.

symwell avatar Oct 21 '22 17:10 symwell

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

mskoenz avatar Sep 15 '23 08:09 mskoenz