mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 16:38:24 -04:00
Remove ‘human-readable’ phone number formatting
This has been removed from utils (so things will break if utils is upgraded without this change isn’t made). I think it’s friendlier to present the phone number as the user entered it anyway – because this is what they think a ‘correct’ phone number representation looks like anyway.
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user