fix importing unit test

dupes no longer incremented for updated notes
This commit is contained in:
Damien Elmes 2018-11-18 15:27:37 +10:00
parent e4af18cf66
commit 98adddde6f

View File

@ -121,7 +121,7 @@ def test_anki2_updates():
tmp = getUpgradeDeckPath("update2.apkg") tmp = getUpgradeDeckPath("update2.apkg")
imp = AnkiPackageImporter(dst, tmp) imp = AnkiPackageImporter(dst, tmp)
imp.run() imp.run()
assert imp.dupes == 1 assert imp.dupes == 0
assert imp.added == 0 assert imp.added == 0
assert imp.updated == 1 assert imp.updated == 1
assert dst.noteCount() == 1 assert dst.noteCount() == 1