diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-10 14:51:55 +0200 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-11 17:00:34 +0200 |
commit | c00e4115f5bd205a0f65224dccd5e889e7cbf3b8 (patch) | |
tree | 971273abc8477b5f67b42242361c9021cf71b5fe /service/test/unit/adapter | |
parent | b8410e1e199a581155566c6c3b9d40dbda32b082 (diff) |
Fixed unit and integration tests.
Diffstat (limited to 'service/test/unit/adapter')
-rw-r--r-- | service/test/unit/adapter/mailstore/test_leap_mailstore.py | 2 | ||||
-rw-r--r-- | service/test/unit/adapter/search/test_search.py | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/service/test/unit/adapter/mailstore/test_leap_mailstore.py b/service/test/unit/adapter/mailstore/test_leap_mailstore.py index 8c20ab8b..df9f8aeb 100644 --- a/service/test/unit/adapter/mailstore/test_leap_mailstore.py +++ b/service/test/unit/adapter/mailstore/test_leap_mailstore.py @@ -386,6 +386,8 @@ class TestLeapMailStore(TestCase): self._mock_create_doc(hdoc_id, wrapper.hdoc) self._mock_create_doc(cdoc_id, wrapper.cdocs[1]) + self._mock_soledad_doc(cdoc_id, wrapper.cdocs[1]) + return msg def _convert_mail_to_leap_message(self, mail, mbox_uuid=None): diff --git a/service/test/unit/adapter/search/test_search.py b/service/test/unit/adapter/search/test_search.py index 1d9076a2..3d6a050f 100644 --- a/service/test/unit/adapter/search/test_search.py +++ b/service/test/unit/adapter/search/test_search.py @@ -16,6 +16,7 @@ import unittest +from pixelated.adapter.mailstore.leap_mailstore import LeapMail from pixelated.adapter.search import SearchEngine from tempdir import TempDir from test.support import test_helper @@ -56,7 +57,7 @@ class SearchEngineTest(unittest.TestCase): } # when - se.index_mail(test_helper.pixelated_mail(extra_headers=headers, chash='mailid')) + se.index_mail(LeapMail('mailid', 'INBOX', headers=headers)) # test_helper.pixelated_mail(extra_headers=headers, chash='mailid')) result = se.search('folker') |