diff options
author | Giovane <giovaneliberato@gmail.com> | 2016-01-14 18:34:00 -0200 |
---|---|---|
committer | Bruno Wagner <bwagner@riseup.net> | 2016-01-15 11:11:55 -0200 |
commit | cd831d1dfc42c2a0d292fe5c1b7f497b2ca393eb (patch) | |
tree | 4069da65211b163f7718b8628349976748a6d0ee /service/test/unit/adapter/test_draft_service.py | |
parent | 36972dc55f64100f4e056130cc1d32a266785a41 (diff) |
Removes InputMail.FROM_EMAIL_ADDRESS constant #578
- Created the replier component to generate the reply dict for the
email. This was needed to decouple the InputMail from the need to know
who is the logged user.
Diffstat (limited to 'service/test/unit/adapter/test_draft_service.py')
-rw-r--r-- | service/test/unit/adapter/test_draft_service.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/test/unit/adapter/test_draft_service.py b/service/test/unit/adapter/test_draft_service.py index bf5e18c5..c2516013 100644 --- a/service/test/unit/adapter/test_draft_service.py +++ b/service/test/unit/adapter/test_draft_service.py @@ -22,7 +22,7 @@ class DraftServiceTest(unittest.TestCase): verify(self.mail_store).add_mail('DRAFTS', mail.raw) def test_update_draft(self): - mail = InputMail.from_dict(test_helper.mail_dict()) + mail = InputMail.from_dict(test_helper.mail_dict(), from_address='pixelated@org') when(self.mail_store).delete_mail(mail.ident).thenReturn(defer.succeed(True)) when(self.mail_store).add_mail('DRAFTS', mail.raw).thenReturn(defer.succeed(LeapMail('id', 'DRAFTS'))) |