mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
add a quick unit test to make sure groupCounts() works with changes
This commit is contained in:
parent
ee767ff132
commit
64d13c2cbc
1 changed files with 4 additions and 0 deletions
|
@ -755,6 +755,10 @@ def test_groupCounts():
|
|||
assert tree[0][4][0][1] == default1
|
||||
assert tree[0][4][0][2] == 1
|
||||
assert tree[0][4][0][3] == 0
|
||||
# code should not fail if a card has an invalid group
|
||||
c.gid = 12345; c.flush()
|
||||
d.sched.groupCounts()
|
||||
d.sched.groupCountTree()
|
||||
|
||||
def test_reorder():
|
||||
d = getEmptyDeck()
|
||||
|
|
Loading…
Reference in a new issue