mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-18 21:44:11 -04:00
Update utils to version 43.8.
Invalid characters for the first line of a postal address now include < >
This commit is contained in:
@@ -688,7 +688,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',
|
||||
]
|
||||
|
||||
@@ -2324,7 +2324,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(
|
||||
|
||||
@@ -562,11 +562,11 @@ def test_get_letter_validation_error_for_unknown_error():
|
||||
None,
|
||||
'There’s 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: @ ( ) = [ ] ” \\ / , < >'
|
||||
),
|
||||
),
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user