Merge pull request #1375 from alphagov/fix-missing-in-recipient-row-error

Fix error message for missing cells in CSV file
This commit is contained in:
Chris Hill-Scott
2017-07-20 16:14:07 +01:00
committed by GitHub
2 changed files with 27 additions and 1 deletions

View File

@@ -27,4 +27,4 @@ notifications-python-client>=3.1,<3.2
awscli>=1.11,<1.12
awscli-cwlogs>=1.4,<1.5
git+https://github.com/alphagov/notifications-utils.git@17.5.1#egg=notifications-utils==17.5.1
git+https://github.com/alphagov/notifications-utils.git@17.5.6#egg=notifications-utils==17.5.6

View File

@@ -185,6 +185,32 @@ def test_upload_csvfile_with_errors_shows_check_page_with_errors(
'Skip to file contents'
)
),
(
"""
phone number, name
+447700900986, example
, example
+447700900986, example
""",
(
'There is a problem with your data '
'You need to enter missing data in 1 row '
'Skip to file contents'
)
),
(
"""
phone number, name
+447700900986, example
+447700900986,
+447700900986, example
""",
(
'There is a problem with your data '
'You need to enter missing data in 1 row '
'Skip to file contents'
)
),
])
def test_upload_csvfile_with_missing_columns_shows_error(
logged_in_client,