mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
Reword because ‘inbetween’ isn’t a word
This commit is contained in:
@@ -45,7 +45,7 @@ class ValidGovEmail:
|
|||||||
|
|
||||||
class NoCommasInPlaceHolders:
|
class NoCommasInPlaceHolders:
|
||||||
|
|
||||||
def __init__(self, message='You can’t put commas inbetween double brackets'):
|
def __init__(self, message='You can’t put commas between double brackets'):
|
||||||
self.message = message
|
self.message = message
|
||||||
|
|
||||||
def __call__(self, form, field):
|
def __call__(self, form, field):
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ def test_for_commas_in_placeholders(
|
|||||||
):
|
):
|
||||||
with pytest.raises(ValidationError) as error:
|
with pytest.raises(ValidationError) as error:
|
||||||
NoCommasInPlaceHolders()(None, _gen_mock_field('Hello ((name,date))'))
|
NoCommasInPlaceHolders()(None, _gen_mock_field('Hello ((name,date))'))
|
||||||
assert str(error.value) == 'You can’t put commas inbetween double brackets'
|
assert str(error.value) == 'You can’t put commas between double brackets'
|
||||||
NoCommasInPlaceHolders()(None, _gen_mock_field('Hello ((name))'))
|
NoCommasInPlaceHolders()(None, _gen_mock_field('Hello ((name))'))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user