mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 09:16:38 -04:00
remove invalidated part of test_review_limits
Previously if the sum of child counts was above the parent's limit, the deck tree would show a parent count above the parent's limit, and clicking on the parent would show a lower count. The new deck tree code never shows a parent count above the parent's limit, so this part of the test is no longer valid.
This commit is contained in:
parent
5ce59f6559
commit
fd4406222a
1 changed files with 0 additions and 13 deletions
|
@ -459,19 +459,6 @@ def test_review_limits():
|
|||
assert tree[1][2] == 4 # parent
|
||||
assert tree[1][5][0][2] == 4 # child
|
||||
|
||||
# switch limits
|
||||
parent = d.decks.get(parent["id"])
|
||||
child = d.decks.get(child["id"])
|
||||
d.decks.setConf(parent, cconf["id"])
|
||||
d.decks.setConf(child, pconf["id"])
|
||||
d.decks.select(parent["id"])
|
||||
d.sched.reset()
|
||||
|
||||
# child limits do not affect the parent
|
||||
tree = d.sched.deckDueTree()
|
||||
assert tree[1][2] == 9 # parent
|
||||
assert tree[1][5][0][2] == 4 # child
|
||||
|
||||
|
||||
def test_button_spacing():
|
||||
d = getEmptyCol()
|
||||
|
|
Loading…
Reference in a new issue