mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix csv test
This commit is contained in:
parent
31e2f927c7
commit
fb06966398
1 changed files with 2 additions and 2 deletions
|
@ -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"))
|
||||||
|
|
Loading…
Reference in a new issue