Merge pull request #3899 from alphagov/bump-utils-new-invalid-address-char

Bump utils version for new invalid address character
This commit is contained in:
Rebecca Law
2021-05-27 13:53:38 +01:00
committed by GitHub
7 changed files with 10 additions and 10 deletions

View File

@@ -733,7 +733,7 @@ def test_upload_csv_file_with_bad_postal_address_shows_check_page_with_errors(
'6 Address must be no more than 7 lines long',
'1 2 3 4 5 6 7 8',
'7 Address lines must not start with any of the following characters: @ ( ) = [ ] ” \\ / , < >',
'7 Address lines must not start with any of the following characters: @ ( ) = [ ] ” \\ / , < > ~',
'=Firstname Lastname 123 Example St. SW1A 1AA',
]
@@ -2370,7 +2370,7 @@ def test_send_one_off_letter_address_populates_address_fields_in_session(
(
'a\n(b\nSW1A 1AA',
[],
'Address lines must not start with any of the following characters: @ ( ) = [ ] ” \\ / , < >',
'Address lines must not start with any of the following characters: @ ( ) = [ ] ” \\ / , < > ~',
),
])
def test_send_one_off_letter_address_rejects_bad_addresses(

View File

@@ -563,11 +563,11 @@ def test_get_letter_validation_error_for_unknown_error():
None,
'Theres a problem with the address for this letter',
(
'Address lines must not start with any of the following characters: @ ( ) = [ ] ” \\ / , < >'
'Address lines must not start with any of the following characters: @ ( ) = [ ] ” \\ / , < > ~'
),
(
'Validation failed because address lines must not start with any of the following '
'characters: @ ( ) = [ ] ” \\ / , < >'
'characters: @ ( ) = [ ] ” \\ / , < > ~'
),
),
])