mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-16 20:49:00 -04:00
Update tests for content changes.
This commit is contained in:
committed by
Chris Hill-Scott
parent
c3d806dd50
commit
18e3eb6b32
@@ -71,7 +71,7 @@ class ValidEmail(Email):
|
||||
|
||||
class NoCommasInPlaceHolders:
|
||||
|
||||
def __init__(self, message='You can’t put commas between double brackets'):
|
||||
def __init__(self, message='You cannot put commas between double brackets'):
|
||||
self.message = message
|
||||
|
||||
def __call__(self, form, field):
|
||||
@@ -84,7 +84,7 @@ class OnlySMSCharacters:
|
||||
non_sms_characters = sorted(list(SanitiseSMS.get_non_compatible_characters(field.data)))
|
||||
if non_sms_characters:
|
||||
raise ValidationError(
|
||||
'You can’t use {} in text messages. {} will not show up properly on everyone’s phones.'.format(
|
||||
'You cannot use {} in text messages. {} will not show up properly on everyone’s phones.'.format(
|
||||
formatted_list(non_sms_characters, conjunction='or', before_each='', after_each=''),
|
||||
('It' if len(non_sms_characters) == 1 else 'They')
|
||||
)
|
||||
@@ -105,7 +105,7 @@ class LettersNumbersAndFullStopsOnly:
|
||||
|
||||
class DoesNotStartWithDoubleZero:
|
||||
|
||||
def __init__(self, message="Can't start with 00"):
|
||||
def __init__(self, message="Cannot start with 00"):
|
||||
self.message = message
|
||||
|
||||
def __call__(self, form, field):
|
||||
|
||||
Reference in New Issue
Block a user