This commit is contained in:
Kenneth Kehl
2025-01-13 13:21:34 -08:00
parent 752e5cada9
commit eac21788a1
2 changed files with 4 additions and 11 deletions

View File

@@ -607,10 +607,11 @@ def test_process_delivery_receipts_success(mocker):
dao_update_mock = mocker.patch(
"app.celery.scheduled_tasks.dao_update_delivery_receipts"
)
cloudwatch_mock = mocker.patch(
"app.celery.scheduled_tasks.AwsCloudwatchClient"
cloudwatch_mock = mocker.patch("app.celery.scheduled_tasks.AwsCloudwatchClient")
cloudwatch_mock.return_value.check_delivery_receipts.return_value = (
range(2000),
range(500),
)
cloudwatch_mock.return_value.check_delivery_receipts.return_value = (range(2000), range(500))
current_app_mock = mocker.patch("app.celery.scheduled_tasks.current_app")
current_app_mock.return_value = MagicMock()
processor = MagicMock()