From fd4406222a3a29356a4ab44ada5e5ba47b631941 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 4 May 2020 14:51:12 +1000 Subject: [PATCH] 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. --- pylib/tests/test_schedv2.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/pylib/tests/test_schedv2.py b/pylib/tests/test_schedv2.py index a2e7202e8..71c626f75 100644 --- a/pylib/tests/test_schedv2.py +++ b/pylib/tests/test_schedv2.py @@ -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()