Use new value of SMS_CHAR_COUNT_LIMIT from utils

Admin, API and utils were all defining a value for SMS_CHAR_COUNT_LIMIT.
This value has been updated in notifications-utils to allow text
messages to be 4 fragments long and notifications-admin now gets the value of
SMS_CHAR_COUNT_LIMIT from notifications-utils instead of defining it in
config.
This commit is contained in:
Katie Smith
2018-08-16 16:51:32 +01:00
parent cdd828da20
commit 1b6c357dea
4 changed files with 7 additions and 7 deletions

View File

@@ -2916,7 +2916,7 @@ TRIAL_MODE_MSG = (
'Cant send to this recipient when service is in trial mode '
'see https://www.notifications.service.gov.uk/trial-mode'
)
TOO_LONG_MSG = 'Content for template has a character count greater than the limit of 495'
TOO_LONG_MSG = 'Content for template has a character count greater than the limit of 612'
SERVICE_DAILY_LIMIT_MSG = 'Exceeded send limits (1000) for today'
@@ -2929,7 +2929,7 @@ SERVICE_DAILY_LIMIT_MSG = 'Exceeded send limits (1000) for today'
(
TOO_LONG_MSG,
'Message too long',
'Text messages cant be longer than 459 characters. Your message is 554 characters.'
'Text messages cant be longer than 612 characters. Your message is 654 characters.'
),
(
SERVICE_DAILY_LIMIT_MSG,
@@ -2957,7 +2957,7 @@ def test_send_notification_shows_error_if_400(
)
with client_request.session_transaction() as session:
session['recipient'] = '07700900001'
session['placeholders'] = {'name': 'a' * 500}
session['placeholders'] = {'name': 'a' * 600}
page = client_request.post(
'main.send_notification',