Merge pull request #1384 from alphagov/notifications-template-history

Fix notifications template history relationship
This commit is contained in:
Alexey Bezhan
2017-11-15 10:51:56 +00:00
committed by GitHub
14 changed files with 155 additions and 49 deletions

View File

@@ -335,7 +335,7 @@ def test_get_all_notifications_filter_by_template_type(client):
assert json_response['notifications'][0]['status'] == "created"
assert json_response['notifications'][0]['template'] == {
'id': str(email_template.id),
'uri': email_template.get_link(),
'uri': notification.template.get_link(),
'version': 1
}
assert json_response['notifications'][0]['email_address'] == "don.draper@scdp.biz"