mirror of
https://github.com/ankitects/anki.git
synced 2025-12-14 07:10:59 -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)
|
col.sched.answerCard(c, 3)
|
||||||
# two reps to graduate, 1 more today
|
# two reps to graduate, 1 more today
|
||||||
assert c.left % 1000 == 3
|
assert c.left % 1000 == 3
|
||||||
assert c.left // 1000 == 1
|
|
||||||
assert col.sched.counts() == (0, 1, 0)
|
assert col.sched.counts() == (0, 1, 0)
|
||||||
c = col.sched.getCard()
|
c = col.sched.getCard()
|
||||||
ni = col.sched.nextIvl
|
ni = col.sched.nextIvl
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ def test_review():
|
||||||
c = col.sched.getCard()
|
c = col.sched.getCard()
|
||||||
assert c.queue == QUEUE_TYPE_NEW
|
assert c.queue == QUEUE_TYPE_NEW
|
||||||
col.sched.answerCard(c, 3)
|
col.sched.answerCard(c, 3)
|
||||||
assert c.left == 1001
|
assert c.left % 1000 == 1
|
||||||
assert col.sched.counts() == (0, 1, 0)
|
assert col.sched.counts() == (0, 1, 0)
|
||||||
assert c.queue == QUEUE_TYPE_LRN
|
assert c.queue == QUEUE_TYPE_LRN
|
||||||
# undo
|
# undo
|
||||||
|
|
@ -67,7 +67,7 @@ def test_review():
|
||||||
assert col.sched.counts() == (1, 0, 0)
|
assert col.sched.counts() == (1, 0, 0)
|
||||||
c.load()
|
c.load()
|
||||||
assert c.queue == QUEUE_TYPE_NEW
|
assert c.queue == QUEUE_TYPE_NEW
|
||||||
assert c.left != 1001
|
assert c.left % 1000 != 1
|
||||||
assert not col.undoName()
|
assert not col.undoName()
|
||||||
# we should be able to undo multiple answers too
|
# we should be able to undo multiple answers too
|
||||||
note = col.newNote()
|
note = col.newNote()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue