mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 09:51:11 -05:00
Try removing boto package again
This commit is contained in:
@@ -2,8 +2,8 @@ import uuid
|
||||
from unittest import mock
|
||||
from unittest.mock import call
|
||||
|
||||
import botocore
|
||||
import pytest
|
||||
from boto.exception import SQSError
|
||||
from flask import current_app, json
|
||||
|
||||
from app.dao import templates_dao
|
||||
@@ -1074,7 +1074,7 @@ def test_post_notifications_saves_email_or_sms_normally_if_saving_to_queue_fails
|
||||
):
|
||||
save_task = mocker.patch(
|
||||
f"app.celery.tasks.save_api_{notification_type}.apply_async",
|
||||
side_effect=SQSError({'some': 'json'}, 'some opname')
|
||||
side_effect=botocore.exceptions.ClientError({'some': 'json'}, 'some opname')
|
||||
)
|
||||
mock_send_task = mocker.patch(f'app.celery.provider_tasks.deliver_{notification_type}.apply_async')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user