Skip to content

Commit

Permalink
Add contract test for 'v2' email notification
Browse files Browse the repository at this point in the history
We don't have a way of creating letter notifications just yet, so
this is all we can test.
  • Loading branch information
pcraig3 committed Nov 22, 2016
1 parent 6733e97 commit 531b093
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/app/public_contracts/test_GET_notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,20 @@ def _get_notification(client, notification, url):
return client.get(url, headers=[auth_header])


def test_get_v2_notification(client, sample_notification):
def test_get_v2_sms_contract(client, sample_notification):
response_json = return_json_from_response(_get_notification(
client, sample_notification, '/v2/notifications/{}'.format(sample_notification.id)
))
validate(response_json, get_notification_response)


def test_get_v2_email_contract(client, sample_email_notification):
response_json = return_json_from_response(_get_notification(
client, sample_email_notification, '/v2/notifications/{}'.format(sample_email_notification.id)
))
validate(response_json, get_notification_response)


def test_get_api_sms_contract(client, sample_notification):
response_json = return_json_from_response(_get_notification(
client, sample_notification, '/notifications/{}'.format(sample_notification.id)
Expand Down

0 comments on commit 531b093

Please sign in to comment.