mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-31 23:26:23 -05:00
- 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:
@@ -35,11 +35,12 @@ def test_get_sms_notification_by_id(client, sample_notification):
|
||||
assert not notification.get('subject')
|
||||
|
||||
|
||||
def test_get_sms_notification_by_invalid_id(client, sample_notification):
|
||||
@pytest.mark.parametrize("id", ["1234-badly-formatted-id-7890", "0"])
|
||||
def test_get_sms_notification_by_invalid_id(client, sample_notification, id):
|
||||
auth_header = create_authorization_header(service_id=sample_notification.service_id)
|
||||
|
||||
response = client.get(
|
||||
'/notifications/{}'.format("not_a_valid_id"),
|
||||
'/notifications/{}'.format(id),
|
||||
headers=[auth_header])
|
||||
|
||||
assert response.status_code == 405
|
||||
|
||||
Reference in New Issue
Block a user