summaryrefslogtreecommitdiff
path: root/service/test/support/integration/model.py
diff options
context:
space:
mode:
authorGiovane <giovaneliberato@gmail.com>2016-01-14 18:34:00 -0200
committerBruno Wagner <bwagner@riseup.net>2016-01-15 11:11:55 -0200
commitcd831d1dfc42c2a0d292fe5c1b7f497b2ca393eb (patch)
tree4069da65211b163f7718b8628349976748a6d0ee /service/test/support/integration/model.py
parent36972dc55f64100f4e056130cc1d32a266785a41 (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/support/integration/model.py')
-rw-r--r--service/test/support/integration/model.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/service/test/support/integration/model.py b/service/test/support/integration/model.py
index c6f6a754..87a18af6 100644
--- a/service/test/support/integration/model.py
+++ b/service/test/support/integration/model.py
@@ -33,7 +33,6 @@ class MailBuilder:
'body': "Hello,\nThis is the body of this message\n\nRegards,\n\n--\nPixelated.\n",
'status': []
}
- InputMail.FROM_EMAIL_ADDRESS = 'Formatted Sender <sender@from.com>'
def with_body(self, body):
self.mail['body'] = body
@@ -80,7 +79,7 @@ class MailBuilder:
return json.dumps(self.mail)
def build_input_mail(self):
- return InputMail.from_dict(self.mail)
+ return InputMail.from_dict(self.mail, from_address='Formatted Sender <sender@from.com>')
def build_leap_mail(self):
return LeapMail.from_dict(self.mail)