mirror of
https://github.com/ankitects/anki.git
synced 2025-12-10 21:36:55 -05:00
fix a few more instances where v2 tests were referencing 'left today'
This commit is contained in:
parent
72389595fa
commit
7dc05253c1
2 changed files with 2 additions and 3 deletions
|
|
@ -283,7 +283,6 @@ def test_learn_day():
|
|||
col.sched.answerCard(c, 3)
|
||||
# two reps to graduate, 1 more today
|
||||
assert c.left % 1000 == 3
|
||||
assert c.left // 1000 == 1
|
||||
assert col.sched.counts() == (0, 1, 0)
|
||||
c = col.sched.getCard()
|
||||
ni = col.sched.nextIvl
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ def test_review():
|
|||
c = col.sched.getCard()
|
||||
assert c.queue == QUEUE_TYPE_NEW
|
||||
col.sched.answerCard(c, 3)
|
||||
assert c.left == 1001
|
||||
assert c.left % 1000 == 1
|
||||
assert col.sched.counts() == (0, 1, 0)
|
||||
assert c.queue == QUEUE_TYPE_LRN
|
||||
# undo
|
||||
|
|
@ -67,7 +67,7 @@ def test_review():
|
|||
assert col.sched.counts() == (1, 0, 0)
|
||||
c.load()
|
||||
assert c.queue == QUEUE_TYPE_NEW
|
||||
assert c.left != 1001
|
||||
assert c.left % 1000 != 1
|
||||
assert not col.undoName()
|
||||
# we should be able to undo multiple answers too
|
||||
note = col.newNote()
|
||||
|
|
|
|||
Loading…
Reference in a new issue