Put two rows in example CSV file

We reckon that this will help people understand that the first row is
headers and the subsequent rows are the users’ data.
This commit is contained in:
Chris Hill-Scott
2016-04-01 14:31:28 +01:00
parent a653759bda
commit 33d9a461db
2 changed files with 23 additions and 14 deletions

View File

@@ -129,7 +129,7 @@ def test_download_example_csv(
follow_redirects=True
)
assert response.status_code == 200
assert response.get_data(as_text=True) == 'phone number\r\n+4412341234\r\n'
assert response.get_data(as_text=True) == 'phone number\r\n+4412341234\r\n+4412341234\r\n'
assert 'text/csv' in response.headers['Content-Type']