Hey there, thanks for pytest-django! Appreciate all of the hard work, have used it quite a few times with no problems.
We're running into a bit of a snag where we upgraded some things and suddenly mail.outbox isn't retaining emails during tests. I've tried to figure out how exactly to use the mailoutbox fixture as documented here but I am having trouble using this.
Right now we're testing in a class and I have tried quite a few configurations to pass mailoutbox fixture. I.e. I updated the ini:
[pytest]
usefixtures = mailoutbox
Not exactly sure how to use that fixture though, I tried adding the positional argument mailoutbox to my class methods, still not able to access it.. I am sure I am missing something simple.
Would appreciate a push in the right direction -- and again, thanks so much for this project!
Hey there, thanks for pytest-django! Appreciate all of the hard work, have used it quite a few times with no problems.
We're running into a bit of a snag where we upgraded some things and suddenly
mail.outboxisn't retaining emails during tests. I've tried to figure out how exactly to use themailoutboxfixture as documented here but I am having trouble using this.Right now we're testing in a class and I have tried quite a few configurations to pass
mailoutboxfixture. I.e. I updated the ini:Not exactly sure how to use that fixture though, I tried adding the positional argument
mailoutboxto my class methods, still not able to access it.. I am sure I am missing something simple.Would appreciate a push in the right direction -- and again, thanks so much for this project!