mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 09:51:11 -05:00
Fixed merge conflicts
This commit is contained in:
@@ -154,7 +154,7 @@ def test_send_notification_to_queue(notify_db, notify_db_session,
|
|||||||
|
|
||||||
def test_send_notification_to_queue_throws_exception_deletes_notification(sample_notification, mocker):
|
def test_send_notification_to_queue_throws_exception_deletes_notification(sample_notification, mocker):
|
||||||
mocked = mocker.patch('app.celery.provider_tasks.deliver_sms.apply_async', side_effect=Boto3Error("EXPECTED"))
|
mocked = mocker.patch('app.celery.provider_tasks.deliver_sms.apply_async', side_effect=Boto3Error("EXPECTED"))
|
||||||
with pytest.raises(Boto3Error):
|
with pytest.raises(SendNotificationToQueueError):
|
||||||
send_notification_to_queue(sample_notification, False)
|
send_notification_to_queue(sample_notification, False)
|
||||||
mocked.assert_called_once_with([(str(sample_notification.id))], queue='send-sms')
|
mocked.assert_called_once_with([(str(sample_notification.id))], queue='send-sms')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user