mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 01:41:05 -05:00
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:
@@ -120,7 +120,7 @@ def test_get_notification_by_id_with_placeholders_returns_200(
|
||||
'status': '{}'.format(sample_notification.status),
|
||||
'template': expected_template_response,
|
||||
'created_at': sample_notification.created_at.strftime(DATETIME_FORMAT),
|
||||
'body': "Hello Bob\nThis is an email from GOV.\u200bUK",
|
||||
'body': "Hello Bob\nThis is an email from GOV.UK",
|
||||
"subject": "Bob",
|
||||
'sent_at': sample_notification.sent_at,
|
||||
'completed_at': sample_notification.completed_at(),
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user