Replace couldn't with could not

This commit is contained in:
karlchillmaid
2019-09-13 12:06:44 +01:00
committed by Chris Hill-Scott
parent b27fd30d45
commit 7d2ce2889f

View File

@@ -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) == (
'Couldnt 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'), (
'Couldnt read example.xlsx. Try using a different file format.' 'Could not read example.xlsx. Try using a different file format.'
)), )),
(BadZipFile, ( (BadZipFile, (
'Couldnt read example.xlsx. Try using a different file format.' 'Could not read example.xlsx. Try using a different file format.'
)), )),
(XLRDError, ( (XLRDError, (
'Couldnt 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. '