mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 19:03:30 -05:00
Reword because ‘inbetween’ isn’t a word
This commit is contained in:
@@ -45,7 +45,7 @@ class ValidGovEmail:
|
||||
|
||||
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
|
||||
|
||||
def __call__(self, form, field):
|
||||
|
||||
@@ -149,7 +149,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 inbetween double brackets'
|
||||
assert str(error.value) == 'You can’t put commas between double brackets'
|
||||
NoCommasInPlaceHolders()(None, _gen_mock_field('Hello ((name))'))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user