add provider tasks tests

This commit is contained in:
Kenneth Kehl
2024-10-22 14:05:44 -07:00
parent 85219bf2d7
commit 3a04836fb2

View File

@@ -87,9 +87,13 @@ def test_should_check_delivery_receipts_client_error(sample_notification, mocker
mock_sanitize = mocker.patch( mock_sanitize = mocker.patch(
"app.celery.provider_tasks.sanitize_successful_notification_by_id" "app.celery.provider_tasks.sanitize_successful_notification_by_id"
) )
try:
check_sms_delivery_receipt( check_sms_delivery_receipt(
"message_id", sample_notification.id, "2024-10-20 00:00:00+0:00" "message_id", sample_notification.id, "2024-10-20 00:00:00+0:00"
) )
assert 1 == 0
except ClientError:
mock_sanitize.assert_not_called() mock_sanitize.assert_not_called()
mock_update.assert_called_once() mock_update.assert_called_once()