mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -05:00
- Refactor v2 post_notification to use a single method for sms and email.
- Added the `simulate` notification logic to version 2. We have 3 email addresses and phone numbers that are used to simulate a successful post to /notifications. This was missed out of the version 2 endpoint. - Added a test to template_dao to check for the default value of normal for new templates - in v2 get_notifications, casted the path param to a uuid, if not uuid abort(404)
This commit is contained in:
@@ -710,8 +710,8 @@ def test_should_delete_notification_and_return_error_if_sqs_fails(
|
||||
|
||||
@pytest.mark.parametrize('to_email', [
|
||||
'simulate-delivered@notifications.service.gov.uk',
|
||||
'simulate-permanent-failure@notifications.service.gov.uk',
|
||||
'simulate-temporary-failure@notifications.service.gov.uk'
|
||||
'simulate-delivered-2@notifications.service.gov.uk',
|
||||
'simulate-delivered-3@notifications.service.gov.uk'
|
||||
])
|
||||
def test_should_not_persist_notification_or_send_email_if_simulated_email(
|
||||
client,
|
||||
|
||||
Reference in New Issue
Block a user