mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 18:53:11 -04:00
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:
@@ -57,7 +57,7 @@ class Config(object):
|
|||||||
CSV_UPLOAD_BUCKET_NAME = 'local-notifications-csv-upload'
|
CSV_UPLOAD_BUCKET_NAME = 'local-notifications-csv-upload'
|
||||||
DESKPRO_PERSON_EMAIL = 'donotreply@notifications.service.gov.uk'
|
DESKPRO_PERSON_EMAIL = 'donotreply@notifications.service.gov.uk'
|
||||||
ACTIVITY_STATS_LIMIT_DAYS = 7
|
ACTIVITY_STATS_LIMIT_DAYS = 7
|
||||||
TEST_MESSAGE_FILENAME = 'One-off message'
|
TEST_MESSAGE_FILENAME = 'Report'
|
||||||
|
|
||||||
STATSD_ENABLED = False
|
STATSD_ENABLED = False
|
||||||
STATSD_HOST = "statsd.hostedgraphite.com"
|
STATSD_HOST = "statsd.hostedgraphite.com"
|
||||||
|
|||||||
@@ -566,4 +566,4 @@ def get_send_test_page_title(template_type, help_argument):
|
|||||||
return 'Example text message'
|
return 'Example text message'
|
||||||
if template_type == 'letter':
|
if template_type == 'letter':
|
||||||
return 'Print a test letter'
|
return 'Print a test letter'
|
||||||
return 'Send one-off message'
|
return 'Send to one recipient'
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="{{ 'column-half' if template.template_type == 'letter' else 'column-third' }}">
|
<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">
|
<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>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -295,7 +295,7 @@ def test_send_test_sms_message(
|
|||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
mock_s3_upload.assert_called_with(
|
mock_s3_upload.assert_called_with(
|
||||||
service_one['id'],
|
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'
|
'eu-west-1'
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -339,12 +339,12 @@ def test_send_test_step_redirects_if_session_not_setup(
|
|||||||
(
|
(
|
||||||
mock_get_service_template_with_placeholders,
|
mock_get_service_template_with_placeholders,
|
||||||
partial(url_for, 'main.send_test'),
|
partial(url_for, 'main.send_test'),
|
||||||
'Send one-off message',
|
'Send to one recipient',
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
mock_get_service_template_with_placeholders,
|
mock_get_service_template_with_placeholders,
|
||||||
partial(url_for, 'main.send_one_off'),
|
partial(url_for, 'main.send_one_off'),
|
||||||
'Send one-off message',
|
'Send to one recipient',
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
mock_get_service_template_with_placeholders,
|
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,
|
mock_get_service_email_template,
|
||||||
partial(url_for, 'main.send_test'),
|
partial(url_for, 'main.send_test'),
|
||||||
'Send one-off message',
|
'Send to one recipient',
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
mock_get_service_email_template,
|
mock_get_service_email_template,
|
||||||
partial(url_for, 'main.send_one_off'),
|
partial(url_for, 'main.send_one_off'),
|
||||||
'Send one-off message',
|
'Send to one recipient',
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
mock_get_service_letter_template,
|
mock_get_service_letter_template,
|
||||||
@@ -603,7 +603,7 @@ def test_send_test_email_message_without_placeholders(
|
|||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
mock_s3_upload.assert_called_with(
|
mock_s3_upload.assert_called_with(
|
||||||
service_one['id'],
|
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'
|
'eu-west-1'
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -824,7 +824,7 @@ def test_send_test_sms_message_puts_submitted_data_in_session_and_file(
|
|||||||
service_one['id'],
|
service_one['id'],
|
||||||
{
|
{
|
||||||
'data': 'name,phone number\r\nJo,07700 900762\r\n',
|
'data': 'name,phone number\r\nJo,07700 900762\r\n',
|
||||||
'file_name': 'One-off message'
|
'file_name': 'Report'
|
||||||
},
|
},
|
||||||
'eu-west-1'
|
'eu-west-1'
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user