Add postage to fixtures and test postage display on notification page

This commit is contained in:
Pea Tyczynska
2018-09-24 11:53:40 +01:00
parent 64f356d7b0
commit 47d047a3a8
2 changed files with 7 additions and 0 deletions

View File

@@ -369,6 +369,7 @@ def notification_json(
reply_to_text=None,
client_reference=None,
created_by_name=None,
postage=None,
):
if template is None:
template = template_json(service_id, str(generate_uuid()), type_=template_type)
@@ -388,6 +389,8 @@ def notification_json(
if status is None:
status = 'delivered'
links = {}
if template_type == 'letter':
postage = 'second'
if with_links:
links = {
@@ -415,6 +418,7 @@ def notification_json(
'service': service_id,
'template_version': template['version'],
'personalisation': personalisation or {},
'postage': postage,
'notification_type': template_type,
'reply_to_text': reply_to_text,
'client_reference': client_reference,