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:
Damien Elmes 2020-05-04 14:51:12 +10:00
parent 5ce59f6559
commit fd4406222a

View file

@ -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()