8000 Fix send_email test · python/webhook-mailer@0d09cfb · GitHub
[go: up one dir, main page]

Skip to content

Commit 0d09cfb

Browse files
committed
Fix send_email test
1 parent 2e33aee commit 0d09cfb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test_mailer.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ def __init__(self, *args, **kwargs):
4848
super().__init__(*args, **kwargs)
4949
self.sent_mails = []
5050

51+
async def ehlo(self):
52+
return aiosmtplib.response.SMTPResponse(250, 'EHLO')
53+
54+
async def login(self, username, password):
55+
return aiosmtplib.response.SMTPResponse(235, 'AUTH')
56+
5157
async def connect(self, *args, **kwargs):
5258
return aiosmtplib.response.SMTPResponse(100, 'ok')
5359

0 commit comments

Comments
 (0)
0