From 6450be6dd2eb2d5a683f81657ed197c930fd9784 Mon Sep 17 00:00:00 2001 From: Folker Bernitt Date: Tue, 28 Jul 2015 09:20:19 +0200 Subject: Added actual assert to add_mail mail store test. --- service/pixelated/adapter/mailstore/leap_mailstore.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'service/pixelated/adapter/mailstore/leap_mailstore.py') diff --git a/service/pixelated/adapter/mailstore/leap_mailstore.py b/service/pixelated/adapter/mailstore/leap_mailstore.py index 9b6e0e0d..3c6544df 100644 --- a/service/pixelated/adapter/mailstore/leap_mailstore.py +++ b/service/pixelated/adapter/mailstore/leap_mailstore.py @@ -95,10 +95,10 @@ class LeapMailStore(MailStore): mailbox = yield self._get_or_create_mailbox(mailbox_name) message = SoledadMailAdaptor().get_msg_from_string(Message, raw_msg) message.get_wrapper().set_mbox_uuid(mailbox.doc_id) - message.get_wrapper().create(self.soledad) + yield message.get_wrapper().create(self.soledad) # add behavious from insert_mdoc_id from mail.py - defer.returnValue(mailbox) + defer.returnValue(message) @defer.inlineCallbacks def _leap_message_to_leap_mail(self, mail_id, message, include_body): -- cgit v1.2.3