diff options
author | Jefferson Stachelski <jstachel@thoughtworks.com> | 2015-09-08 22:22:57 -0300 |
---|---|---|
committer | Jefferson Stachelski <jstachel@thoughtworks.com> | 2015-09-08 22:25:08 -0300 |
commit | 3802f0a55a383fa9314236e0d0905b963ea8f297 (patch) | |
tree | d5fcc931098eaf943b1733bd0aa3444770fd2675 /service/test | |
parent | b50a8ac110fc08e543a78d063844e60b7b28efae (diff) |
Some progress on the issue #441
I added some comments and TODOs in some parts of the code where I think
should be changed
Diffstat (limited to 'service/test')
-rw-r--r-- | service/test/integration/test_contacts.py | 4 | ||||
-rw-r--r-- | service/test/support/integration/model.py | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/service/test/integration/test_contacts.py b/service/test/integration/test_contacts.py index 98c2e6f6..148f614c 100644 --- a/service/test/integration/test_contacts.py +++ b/service/test/integration/test_contacts.py @@ -84,11 +84,15 @@ class ContactsTest(SoledadTestBase): bounced_hdoc = self._bounced_mail_hdoc_content() bounced_mail_template = MailBuilder().build_input_mail() bounced_mail_template.headers.update(bounced_hdoc["headers"]) + # TODO: must add attachments to bounced_mail_template + yield self.add_mail_to_inbox(bounced_mail_template) not_bounced_mail = MailBuilder( ).with_tags(['important']).with_to('this_mail_was_not@bounced.com').build_input_mail() yield self.add_mail_to_inbox(not_bounced_mail) + mails = yield self.mail_service.all_mails() + self.search_engine.index_mails(mails) contacts = yield self.get_contacts(query='this') self.assertNotIn('this_mail_was_bounced@domain.com', contacts) diff --git a/service/test/support/integration/model.py b/service/test/support/integration/model.py index 93b5969b..8b6f9759 100644 --- a/service/test/support/integration/model.py +++ b/service/test/support/integration/model.py @@ -80,6 +80,9 @@ class MailBuilder: def build_input_mail(self): return InputMail.from_dict(self.mail) + def build_leap_mail(self): + return LeapMail.from_dict(self.mail) + class ResponseMail: def __init__(self, mail_dict): |