summaryrefslogtreecommitdiff
path: root/service/test/unit
diff options
context:
space:
mode:
authorPatrick Maia <patrickjourdanmaia@gmail.com>2014-11-12 18:07:10 +0000
committerPatrick Maia <patrickjourdanmaia@gmail.com>2014-11-12 18:07:10 +0000
commitf202ed1c57d5a727dbcc6d10d6a669d363639ab3 (patch)
tree36689a3d6de027c5eb8edb2e746a3b5d1971f619 /service/test/unit
parentfa24aaf94af1dd8b4ead48d6518d3770a60d1211 (diff)
Card #30 - adds attachments information to bulk mail retrieval (GET /mails)
Diffstat (limited to 'service/test/unit')
-rw-r--r--service/test/unit/adapter/mail_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/test/unit/adapter/mail_test.py b/service/test/unit/adapter/mail_test.py
index 00a05b4a..d0e2bcec 100644
--- a/service/test/unit/adapter/mail_test.py
+++ b/service/test/unit/adapter/mail_test.py
@@ -96,7 +96,7 @@ class TestPixelatedMail(unittest.TestCase):
parts['alternatives'].append({'content': 'blablabla', 'headers': {'Content-Type': 'text/plain'}})
parts['alternatives'].append({'content': '<p>blablabla</p>', 'headers': {'Content-Type': 'text/html'}})
- mail = PixelatedMail.from_soledad(None, None, None, None, parts=parts)
+ mail = PixelatedMail.from_soledad(None, None, None, parts=parts, soledad_querier=None)
self.assertRegexpMatches(mail.body, '^--' + mail.boundary + '\n.*')
self.assertRegexpMatches(mail.body, '\nContent-Type: text/html\n\n<p>blablabla</p>\n')
@@ -108,7 +108,7 @@ class TestPixelatedMail(unittest.TestCase):
parts['alternatives'].append({'content': '100% happy with percentage symbol', 'headers': {'Content-Type': 'text/plain'}})
parts['alternatives'].append({'content': '<p>100% happy with percentage symbol</p>', 'headers': {'Content-Type': 'text/html'}})
- mail = PixelatedMail.from_soledad(None, None, None, None, parts=parts)
+ mail = PixelatedMail.from_soledad(None, None, None, parts=parts, soledad_querier=None)
self.assertRegexpMatches(mail.body, '([\s\S]*100%){2}')