tests: add check for empty lines in CSV (they're allowed)

This commit is contained in:
Frédéric Péters 2016-09-16 15:19:50 +02:00
parent e6fa7e3a05
commit 71919eee34
1 changed files with 1 additions and 0 deletions

View File

@ -265,6 +265,7 @@ def test_import_events(app, admin_user):
resp = app.get('/manage/agendas/%s/import-events' % agenda.id, status=200)
resp.form['events_csv_file'] = Upload('t.csv', 'date,time,etc.\n'
'2016-09-16,18:00,10,5,bla bla bla\n'
'\n'
'2016-09-19,18:00,10', 'text/csv')
resp = resp.form.submit(status=302)
assert Event.objects.count() == 2