From f7391da350d3bbac87536a522d30012e6576b59e Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Tue, 23 Aug 2016 13:33:17 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20prefix=20text=20messages=20is?= =?UTF-8?q?=20sender=20name=20is=20set?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implements: - [x] https://github.com/alphagov/notifications-utils/pull/66 --- app/celery/provider_tasks.py | 2 +- requirements.txt | 2 +- tests/app/celery/test_provider_tasks.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/celery/provider_tasks.py b/app/celery/provider_tasks.py index 6d4873d69..ca81361f2 100644 --- a/app/celery/provider_tasks.py +++ b/app/celery/provider_tasks.py @@ -61,7 +61,7 @@ def send_sms_to_provider(self, service_id, notification_id): template = Template( template_model.__dict__, values={} if not notification.personalisation else notification.personalisation, - renderer=SMSMessage(prefix=service.name) + renderer=SMSMessage(prefix=service.name, sender=service.sms_sender) ) try: if service.research_mode or notification.key_type == KEY_TYPE_TEST: diff --git a/requirements.txt b/requirements.txt index 904bd6e3e..09c22a0e2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -23,4 +23,4 @@ statsd==3.2.1 git+https://github.com/alphagov/notifications-python-client.git@1.0.0#egg=notifications-python-client==1.0.0 -git+https://github.com/alphagov/notifications-utils.git@8.7.6#egg=notifications-utils==8.7.6 +git+https://github.com/alphagov/notifications-utils.git@9.0.0#egg=notifications-utils==9.0.0 diff --git a/tests/app/celery/test_provider_tasks.py b/tests/app/celery/test_provider_tasks.py index 5baca8f0d..6d8139d96 100644 --- a/tests/app/celery/test_provider_tasks.py +++ b/tests/app/celery/test_provider_tasks.py @@ -357,7 +357,7 @@ def test_should_send_sms_sender_from_service_if_present( mmg_client.send_sms.assert_called_once_with( to=format_phone_number(validate_phone_number("+447234123123")), - content="Sample service: This is a template:\nwith a newline", + content="This is a template:\nwith a newline", reference=str(db_notification.id), sender=sample_service.sms_sender )