Skip to content

Commit d11353b

Browse files
committed
feat: add unit test for mail sending feature
1 parent c11192a commit d11353b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tests/test_post_office_smtp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class _InMemorySMTPHandler:
1515
def __init__(self):
1616
self.envelopes = []
1717

18-
async def handle_data(self, server, session, envelope):
18+
async def handle_DATA(self, server, session, envelope): # noqa: N802 the name is required by aiosmtpd
1919
self.envelopes.append(envelope)
2020
return "250 OK"
2121

0 commit comments

Comments
 (0)