summaryrefslogtreecommitdiff
path: root/service/test/integration/test_incoming_mail.py
diff options
context:
space:
mode:
authorTulio Casagrande <tcasagra@thoughtworks.com>2016-04-04 14:29:49 -0300
committerTulio Casagrande <tcasagra@thoughtworks.com>2016-04-04 14:29:49 -0300
commitfe29d4dfe352211f2c3f66a08f8db0048a119a8c (patch)
tree93339dac6bcee7901f0006ed77dfbeaa2c000e99 /service/test/integration/test_incoming_mail.py
parent62e18f6845c28676a5b0e3f794cacf29112a580e (diff)
Migrate ImapAccount to Account
Migrate all usage of leap.ImapAccount to leap.Account We had to adapt some calls because of signature changes and, because we need the Account to be initialized before moving on, we are directly using the deferred initialization that the account has See: https://github.com/leapcode/leap_mail/pull/228
Diffstat (limited to 'service/test/integration/test_incoming_mail.py')
-rw-r--r--service/test/integration/test_incoming_mail.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/test/integration/test_incoming_mail.py b/service/test/integration/test_incoming_mail.py
index 682ca118..e413d6c1 100644
--- a/service/test/integration/test_incoming_mail.py
+++ b/service/test/integration/test_incoming_mail.py
@@ -25,12 +25,12 @@ class IncomingMailTest(SoledadTestBase):
@defer.inlineCallbacks
def test_message_collection(self):
# given
- mbx = yield self.account.getMailbox('INBOX')
+ mail_collection = yield self.account.get_collection_by_mailbox('INBOX')
input_mail = MailBuilder().build_input_mail()
# when
yield MailboxIndexerListener.listen(self.account, 'INBOX', self.mail_store, self.search_engine)
- yield mbx.addMessage(input_mail.raw, [], notify_just_mdoc=False)
+ yield mail_collection.add_msg(input_mail.raw)
# then
yield self.wait_in_reactor() # event handlers are called async, wait for it