mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-05 01:51:28 -04:00
Replace negative contractions
This commit is contained in:
committed by
Chris Hill-Scott
parent
92d3b99c7e
commit
508ac04aa6
@@ -147,7 +147,7 @@ def test_for_commas_in_placeholders(
|
||||
):
|
||||
with pytest.raises(ValidationError) as error:
|
||||
NoCommasInPlaceHolders()(None, _gen_mock_field('Hello ((name,date))'))
|
||||
assert str(error.value) == 'You can’t put commas between double brackets'
|
||||
assert str(error.value) == 'You cannot put commas between double brackets'
|
||||
NoCommasInPlaceHolders()(None, _gen_mock_field('Hello ((name))'))
|
||||
|
||||
|
||||
@@ -160,15 +160,15 @@ def test_sms_character_validation(client, msg):
|
||||
(
|
||||
'∆ abc 📲 def 📵 ghi',
|
||||
(
|
||||
'You can’t use ∆, 📲 or 📵 in text messages. '
|
||||
'They won’t show up properly on everyone’s phones.'
|
||||
'You cannot use ∆, 📲 or 📵 in text messages. '
|
||||
'They will not show up properly on everyone’s phones.'
|
||||
)
|
||||
),
|
||||
(
|
||||
'📵',
|
||||
(
|
||||
'You can’t use 📵 in text messages. '
|
||||
'It won’t show up properly on everyone’s phones.'
|
||||
'You cannot use 📵 in text messages. '
|
||||
'It will not show up properly on everyone’s phones.'
|
||||
)
|
||||
),
|
||||
])
|
||||
@@ -191,7 +191,7 @@ def test_sms_sender_form_validation(
|
||||
|
||||
form.sms_sender.data = ''
|
||||
form.validate()
|
||||
assert "Can’t be empty" == form.errors['sms_sender'][0]
|
||||
assert "Cannot be empty" == form.errors['sms_sender'][0]
|
||||
|
||||
form.sms_sender.data = 'morethanelevenchars'
|
||||
form.validate()
|
||||
@@ -211,4 +211,4 @@ def test_sms_sender_form_validation(
|
||||
|
||||
form.sms_sender.data = '00111222333'
|
||||
form.validate()
|
||||
assert "Can't start with 00" == form.errors['sms_sender'][0]
|
||||
assert "Cannot start with 00" == form.errors['sms_sender'][0]
|
||||
|
||||
Reference in New Issue
Block a user