From c4d6f25902a28e7a17bb2bb2dce10db90b0ce8c8 Mon Sep 17 00:00:00 2001 From: Patrick Maia and Victor Shyba Date: Mon, 3 Nov 2014 14:42:34 -0300 Subject: Card #30 - adds attachment information to fake mail --- fake-service/app/adapter/mail.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'fake-service') diff --git a/fake-service/app/adapter/mail.py b/fake-service/app/adapter/mail.py index fae3958c..2e2d8e85 100644 --- a/fake-service/app/adapter/mail.py +++ b/fake-service/app/adapter/mail.py @@ -47,6 +47,10 @@ class Mail: self.security_casing = {} self.status = self._get_status() self.draft_reply_for = -1 + self.attachments = [{'headers': {'Content-Type': 'application/pdf', + 'Content-Transfer-Encoding': 'base64'}, + 'ident': 'BEBACAFE04090', + 'name': 'mydoc.pdf'}] def _get_body(self, message): if message.is_multipart(): -- cgit v1.2.3