Rename the feature to ‘send to one recipient’

‘One-off’ is a bit wooly. Feels like our name for the thing. ‘Send to
one recipient’ matches ‘Upload recipients’.

This also means making the `<h1>` on job page ‘Report’ for one-off
messages. It doesn’t make sense to call the feature ‘send to one
recipient’ when we’re not using the language of one-off any more.
This commit is contained in:
Chris Hill-Scott
2017-06-01 13:03:22 +01:00
parent 43f6d21e1d
commit 6425dcbc94
4 changed files with 10 additions and 10 deletions

View File

@@ -57,7 +57,7 @@ class Config(object):
CSV_UPLOAD_BUCKET_NAME = 'local-notifications-csv-upload'
DESKPRO_PERSON_EMAIL = 'donotreply@notifications.service.gov.uk'
ACTIVITY_STATS_LIMIT_DAYS = 7
TEST_MESSAGE_FILENAME = 'One-off message'
TEST_MESSAGE_FILENAME = 'Report'
STATSD_ENABLED = False
STATSD_HOST = "statsd.hostedgraphite.com"

View File

@@ -566,4 +566,4 @@ def get_send_test_page_title(template_type, help_argument):
return 'Example text message'
if template_type == 'letter':
return 'Print a test letter'
return 'Send one-off message'
return 'Send to one recipient'

View File

@@ -14,7 +14,7 @@
</div>
<div class="{{ 'column-half' if template.template_type == 'letter' else 'column-third' }}">
<a href="{{ url_for(".send_one_off", service_id=current_service.id, template_id=template.id) }}" class="pill-separate-item">
{{ 'Print a test letter' if template.template_type == 'letter' else 'Send one-off message' }}
{{ 'Print a test letter' if template.template_type == 'letter' else 'Send to one recipient' }}
</a>
</div>
{% endif %}

View File

@@ -295,7 +295,7 @@ def test_send_test_sms_message(
assert response.status_code == 200
mock_s3_upload.assert_called_with(
service_one['id'],
{'data': 'phone number\r\n07700 900762\r\n', 'file_name': 'One-off message'},
{'data': 'phone number\r\n07700 900762\r\n', 'file_name': 'Report'},
'eu-west-1'
)
@@ -339,12 +339,12 @@ def test_send_test_step_redirects_if_session_not_setup(
(
mock_get_service_template_with_placeholders,
partial(url_for, 'main.send_test'),
'Send one-off message',
'Send to one recipient',
),
(
mock_get_service_template_with_placeholders,
partial(url_for, 'main.send_one_off'),
'Send one-off message',
'Send to one recipient',
),
(
mock_get_service_template_with_placeholders,
@@ -359,12 +359,12 @@ def test_send_test_step_redirects_if_session_not_setup(
(
mock_get_service_email_template,
partial(url_for, 'main.send_test'),
'Send one-off message',
'Send to one recipient',
),
(
mock_get_service_email_template,
partial(url_for, 'main.send_one_off'),
'Send one-off message',
'Send to one recipient',
),
(
mock_get_service_letter_template,
@@ -603,7 +603,7 @@ def test_send_test_email_message_without_placeholders(
assert response.status_code == 200
mock_s3_upload.assert_called_with(
service_one['id'],
{'data': 'email address\r\ntest@user.gov.uk\r\n', 'file_name': 'One-off message'},
{'data': 'email address\r\ntest@user.gov.uk\r\n', 'file_name': 'Report'},
'eu-west-1'
)
@@ -824,7 +824,7 @@ def test_send_test_sms_message_puts_submitted_data_in_session_and_file(
service_one['id'],
{
'data': 'name,phone number\r\nJo,07700 900762\r\n',
'file_name': 'One-off message'
'file_name': 'Report'
},
'eu-west-1'
)