Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Boenninghausen committed Oct 28, 2024
1 parent febfeed commit d98c0fb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async def test_handler(self, handler: CustomHandler):
envelope.peer = "127.0.0.1"
envelope.mail_to = mail.sender
envelope.rcpt_to = [mail.receiver]
envelope.data = mail.to_mime_text().as_string().encode("utf-8")
envelope.content = mail.to_mime_text().as_string().encode("utf-8")
await handler.handle_DATA(None, None, envelope)
assert handler.swap_sender_receiver.called
assert handler.send_mail.called
Expand All @@ -106,7 +106,7 @@ def test_run(self, responder: Responder):
try:
responder.run()
except KeyboardInterrupt:
pass # Allow the KeyboardInterrupt to break the loop
pass

assert responder.init_controller.called
assert responder.controller.start.called
Expand Down

0 comments on commit d98c0fb

Please sign in to comment.