diff options
author | Duda Dornelles <ddornell@thoughtworks.com> | 2014-09-30 10:33:13 -0300 |
---|---|---|
committer | Duda Dornelles <ddornell@thoughtworks.com> | 2014-09-30 10:33:16 -0300 |
commit | c431f219f52f004aebf316283260cfffbddf17c8 (patch) | |
tree | 72e1a3a4c352744550babebfa578151ec19f589b /service/test | |
parent | e34fc64a13eae3eef4333bc6f4e993fa1891eb81 (diff) |
Fixing move to trash
Diffstat (limited to 'service/test')
-rw-r--r-- | service/test/adapter/mail_service_test.py | 5 | ||||
-rw-r--r-- | service/test/adapter/pixelated_mailbox_test.py | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/service/test/adapter/mail_service_test.py b/service/test/adapter/mail_service_test.py index 7912241d..549ab05c 100644 --- a/service/test/adapter/mail_service_test.py +++ b/service/test/adapter/mail_service_test.py @@ -55,9 +55,6 @@ class TestMailService(unittest.TestCase): verify(self.mailboxes).add_draft(mail) def test_delete_mail(self): - mail = mock() - when(self.mailboxes).mail(any()).thenReturn(mail) - self.mail_service.delete_mail(1) - verify(self.mailboxes).move_to_trash(mail) + verify(self.mailboxes).move_to_trash(1) diff --git a/service/test/adapter/pixelated_mailbox_test.py b/service/test/adapter/pixelated_mailbox_test.py index 87f7b4f3..5b1cfae5 100644 --- a/service/test/adapter/pixelated_mailbox_test.py +++ b/service/test/adapter/pixelated_mailbox_test.py @@ -40,7 +40,7 @@ class PixelatedMailboxTest(unittest.TestCase): self.assertNotIn('spam', self.mailbox.mails()[0].tags) def test_remove_message_from_mailbox(self): - mail = PixelatedMail() + mail = PixelatedMail.from_soledad(*test_helper.leap_mail(), soledad_querier=self.querier) when(self.querier).mail(1).thenReturn(mail) self.mailbox.remove(1) |