mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-16 20:49:00 -04:00
Replace couldn't with could not
This commit is contained in:
committed by
Chris Hill-Scott
parent
b27fd30d45
commit
7d2ce2889f
@@ -321,19 +321,19 @@ def test_upload_files_in_different_formats(
|
|||||||
else:
|
else:
|
||||||
assert not mock_s3_upload.called
|
assert not mock_s3_upload.called
|
||||||
assert normalize_spaces(page.select_one('.banner-dangerous').text) == (
|
assert normalize_spaces(page.select_one('.banner-dangerous').text) == (
|
||||||
'Couldn’t read {}. Try using a different file format.'.format(filename)
|
'Could not read {}. Try using a different file format.'.format(filename)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize('exception, expected_error_message', [
|
@pytest.mark.parametrize('exception, expected_error_message', [
|
||||||
(partial(UnicodeDecodeError, 'codec', b'', 1, 2, 'reason'), (
|
(partial(UnicodeDecodeError, 'codec', b'', 1, 2, 'reason'), (
|
||||||
'Couldn’t read example.xlsx. Try using a different file format.'
|
'Could not read example.xlsx. Try using a different file format.'
|
||||||
)),
|
)),
|
||||||
(BadZipFile, (
|
(BadZipFile, (
|
||||||
'Couldn’t read example.xlsx. Try using a different file format.'
|
'Could not read example.xlsx. Try using a different file format.'
|
||||||
)),
|
)),
|
||||||
(XLRDError, (
|
(XLRDError, (
|
||||||
'Couldn’t read example.xlsx. Try using a different file format.'
|
'Could not read example.xlsx. Try using a different file format.'
|
||||||
)),
|
)),
|
||||||
(XLDateError, (
|
(XLDateError, (
|
||||||
'example.xlsx contains numbers or dates that Notify cannot understand. '
|
'example.xlsx contains numbers or dates that Notify cannot understand. '
|
||||||
|
|||||||
Reference in New Issue
Block a user