summaryrefslogtreecommitdiff
path: root/fake-service
diff options
context:
space:
mode:
authorPatrick Maia and Victor Shyba <pixelated-team+pmaia+vshyba@thoughtworks.com>2014-11-03 14:42:34 -0300
committerPatrick Maia <pmaia@thoughtworks.com>2014-11-03 14:44:46 -0300
commitc4d6f25902a28e7a17bb2bb2dce10db90b0ce8c8 (patch)
tree65253c141b8dca99c3b4585e8675ce1e1b1f0974 /fake-service
parent4821766e67662f804f318b73c578f5a6329a86c7 (diff)
Card #30 - adds attachment information to fake mail
Diffstat (limited to 'fake-service')
-rw-r--r--fake-service/app/adapter/mail.py4
1 files changed, 4 insertions, 0 deletions
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():