- Added logging to indicate that we created the notification and that we sent the notification to a delivery queue.

- Small updates as recommended by review comments.
This commit is contained in:
Rebecca Law
2017-01-18 09:56:26 +00:00
parent 41b49eb8e0
commit f66670c558
6 changed files with 28 additions and 21 deletions

View File

@@ -164,10 +164,11 @@ def test_get_notification_by_id_nonexistent_id(client, sample_notification):
}
def test_get_notification_by_id_invalid_id(client, sample_notification):
@pytest.mark.parametrize("id", ["1234-badly-formatted-id-7890", "0"])
def test_get_notification_by_id_invalid_id(client, sample_notification, id):
auth_header = create_authorization_header(service_id=sample_notification.service_id)
response = client.get(
path='/v2/notifications/1234-badly-formatted-id-7890',
path='/v2/notifications/{}'.format(id),
headers=[('Content-Type', 'application/json'), auth_header])
assert response.status_code == 404