Skip to content

Commit

Permalink
ensure SMTPMock test fixture always starts with last_message = None
Browse files Browse the repository at this point in the history
  • Loading branch information
lkeegan committed Dec 11, 2024
1 parent 813e4d8 commit 14e7bf1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mondey_backend/tests/routers/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def send_message(self, msg: EmailMessage, **kwargs):
@pytest.fixture
def smtp_mock(monkeypatch: pytest.MonkeyPatch):
monkeypatch.setattr(smtplib, "SMTP", SMTPMock)
SMTPMock.last_message = None
return SMTPMock


Expand Down

0 comments on commit 14e7bf1

Please sign in to comment.