From 248d4db0ce0768a1f7039f5c33719c7815a4da32 Mon Sep 17 00:00:00 2001 From: Steve Astels Date: Wed, 9 Oct 2024 14:25:12 -0400 Subject: [PATCH] fix/send delivery receipt for INTERNAL_TEST sms (#2323) --- app/delivery/send_to_providers.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/delivery/send_to_providers.py b/app/delivery/send_to_providers.py index 16edc8b858..b2d80b9bcd 100644 --- a/app/delivery/send_to_providers.py +++ b/app/delivery/send_to_providers.py @@ -125,6 +125,11 @@ def send_sms_to_provider(notification): if reference == "opted_out": update_notification_to_opted_out(notification, provider) else: + if ( + validate_and_format_phone_number(notification.to, international=notification.international) + == current_app.config["INTERNAL_TEST_NUMBER"] + ): + send_sms_response(provider.get_name(), notification.to, reference) update_notification_to_sending(notification, provider) # Record StatsD stats to compute SLOs