diff --git a/app/main/views/send.py b/app/main/views/send.py index dd20ff41f..12a717a56 100644 --- a/app/main/views/send.py +++ b/app/main/views/send.py @@ -60,9 +60,7 @@ def get_example_csv_fields(column_headers, use_example_as_example, submitted_fie def get_example_csv_rows(template, use_example_as_example=True, submitted_fields=False): return { 'email': ['test@example.com'] if use_example_as_example else [current_user.email_address], - 'sms': ['07700 900321'] if use_example_as_example else [validate_and_format_phone_number( - current_user.mobile_number, human_readable=True - )], + 'sms': ['07700 900321'] if use_example_as_example else [current_user.mobile_number], 'letter': [ (submitted_fields or {}).get( key, get_example_letter_address(key) if use_example_as_example else key diff --git a/tests/app/main/views/test_send.py b/tests/app/main/views/test_send.py index fe443f138..6c6482d20 100644 --- a/tests/app/main/views/test_send.py +++ b/tests/app/main/views/test_send.py @@ -293,7 +293,7 @@ def test_send_test_sms_message( fake_uuid ): - expected_data = {'data': 'phone number\r\n07700 900 762\r\n', 'file_name': 'Test message'} + expected_data = {'data': 'phone number\r\n07700 900762\r\n', 'file_name': 'Test message'} mocker.patch('app.main.views.send.s3download', return_value='phone number\r\n+4412341234') response = logged_in_client.get( @@ -344,7 +344,7 @@ def test_send_test_sms_message_with_placeholders( ): expected_data = { - 'data': 'phone number,name\r\n07700 900 762,Jo\r\n', + 'data': 'phone number,name\r\n07700 900762,Jo\r\n', 'file_name': 'Test message' } mocker.patch('app.main.views.send.s3download', return_value='phone number\r\n+4412341234')