From d7ddea1021c88b797d6d8eded842237e175d343b Mon Sep 17 00:00:00 2001 From: Duda Dornelles Date: Mon, 1 Sep 2014 16:56:20 -0300 Subject: fixing unit tests --- service/pixelated/adapter/pixelated_mail_sender.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'service/pixelated/adapter') diff --git a/service/pixelated/adapter/pixelated_mail_sender.py b/service/pixelated/adapter/pixelated_mail_sender.py index 6f6340da..486816ac 100644 --- a/service/pixelated/adapter/pixelated_mail_sender.py +++ b/service/pixelated/adapter/pixelated_mail_sender.py @@ -18,9 +18,9 @@ from pixelated.support.functional import flatten class PixelatedMailSender(): - def __init__(self, account_email_address): + def __init__(self, account_email_address, smtp_client=None): self.account_email_address = account_email_address - self.smtp_client = smtplib.SMTP('localhost', 4650) + self.smtp_client = smtp_client or smtplib.SMTP('localhost', 4650) def sendmail(self, mail): recipients = flatten([mail.get_to(), mail.get_cc(), mail.get_bcc()]) -- cgit v1.2.3