Merge pull request #1829 from alphagov/bump-utils-plain-text-email-formatting

Bump utils to improve plain text email formatting
This commit is contained in:
Chris Hill-Scott
2018-04-10 11:37:40 +01:00
committed by GitHub
7 changed files with 10 additions and 10 deletions

View File

@@ -314,7 +314,7 @@ def test_post_email_notification_returns_201(client, sample_email_template_with_
assert notification.reference is None
assert notification.reply_to_text is None
assert resp_json['content']['body'] == sample_email_template_with_placeholders.content \
.replace('((name))', 'Bob').replace('GOV.UK', u'GOV.\u200bUK')
.replace('((name))', 'Bob')
assert resp_json['content']['subject'] == sample_email_template_with_placeholders.subject \
.replace('((name))', 'Bob')
assert resp_json['content']['from_email'] == "{}@{}".format(