mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-15 07:18:09 -04:00
Send complaints on to service callback APIs using an async task
This commit is contained in:
@@ -7,7 +7,7 @@ from app.notifications.process_client_response import (
|
||||
validate_callback_data,
|
||||
process_sms_client_response
|
||||
)
|
||||
from app.celery.service_callback_tasks import create_encrypted_callback_data
|
||||
from app.celery.service_callback_tasks import create_delivery_status_callback_data
|
||||
from tests.app.db import create_service_callback_api
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ def test_outcome_statistics_called_for_successful_callback(sample_notification,
|
||||
success, error = process_sms_client_response(status='3', provider_reference=reference, client_name='MMG')
|
||||
assert success == "MMG callback succeeded. reference {} updated".format(str(reference))
|
||||
assert error is None
|
||||
encrypted_data = create_encrypted_callback_data(sample_notification, callback_api)
|
||||
encrypted_data = create_delivery_status_callback_data(sample_notification, callback_api)
|
||||
send_mock.assert_called_once_with([str(sample_notification.id), encrypted_data],
|
||||
queue="service-callbacks")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user