mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
we don't automatically delete anymore, so update unit test
This commit is contained in:
parent
140cc82a43
commit
07ae142781
1 changed files with 0 additions and 12 deletions
|
@ -81,18 +81,6 @@ def test_genrem():
|
|||
f['Back'] = "1"
|
||||
f.flush()
|
||||
assert len(f.cards()) == 2
|
||||
# deleteion calls a hook to let the user abort the delete. let's abort it:
|
||||
def abort(val, *args):
|
||||
return False
|
||||
addHook("remEmptyCards", abort)
|
||||
f['Back'] = ""
|
||||
f.flush()
|
||||
assert len(f.cards()) == 2
|
||||
# if there's no filter, or it returns true, the cards get deleted
|
||||
# .. not currently
|
||||
# remHook("remEmptyCards", abort)
|
||||
# f.flush()
|
||||
# assert len(f.cards()) == 1
|
||||
|
||||
def test_gendeck():
|
||||
d = getEmptyDeck()
|
||||
|
|
Loading…
Reference in a new issue