summaryrefslogtreecommitdiffstats
path: root/tests/unit/test-012-wallace_invitationpolicy.py
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2015-05-26 14:17:18 +0200
committerThomas Bruederli <bruederli@kolabsys.com>2015-05-26 14:17:18 +0200
commita1a7c5fdb86c513b43deb2496f0d1c604ec52f14 (patch)
tree35e5c91f64d3a03c70abdd3f10ab97f95991f773 /tests/unit/test-012-wallace_invitationpolicy.py
parent0c072d69d677fa7cdad65af563994f6a0098003f (diff)
downloadpykolab-a1a7c5fdb86c513b43deb2496f0d1c604ec52f14.tar.gz
Limit number of retries to send an update notification; fix the smtplib.SMTP.sendmail() mock to also return success status
Diffstat (limited to 'tests/unit/test-012-wallace_invitationpolicy.py')
-rw-r--r--tests/unit/test-012-wallace_invitationpolicy.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unit/test-012-wallace_invitationpolicy.py b/tests/unit/test-012-wallace_invitationpolicy.py
index b612a52..189f3c6 100644
--- a/tests/unit/test-012-wallace_invitationpolicy.py
+++ b/tests/unit/test-012-wallace_invitationpolicy.py
@@ -104,6 +104,7 @@ class TestWallaceInvitationpolicy(unittest.TestCase):
def _mock_smtp_sendmail(self, from_addr, to_addr, message, mail_options=None, rcpt_options=None):
self.smtplog.append((from_addr, to_addr, message))
+ return True
def test_001_itip_events_from_message(self):
itips = pykolab.itip.events_from_message(message_from_string(itip_multipart))