fix csv test

This commit is contained in:
Damien Elmes 2012-10-23 22:27:07 +09:00
parent 31e2f927c7
commit fb06966398

View file

@ -146,11 +146,11 @@ def test_csv():
i.run() i.run()
# four problems - too many & too few fields, a missing front, and a # four problems - too many & too few fields, a missing front, and a
# duplicate entry # duplicate entry
assert len(i.log) == 5 assert len(i.log) == 6
assert i.total == 5 assert i.total == 5
# if we run the import again, it should update instead # if we run the import again, it should update instead
i.run() i.run()
assert len(i.log) == 5 assert len(i.log) == 6
assert i.total == 5 assert i.total == 5
# but importing should not clobber tags if they're unmapped # but importing should not clobber tags if they're unmapped
n = deck.getNote(deck.db.scalar("select id from notes")) n = deck.getNote(deck.db.scalar("select id from notes"))