fix a few more instances where v2 tests were referencing 'left today'

This commit is contained in:
Damien Elmes 2021-02-22 12:20:47 +10:00
parent 72389595fa
commit 7dc05253c1
2 changed files with 2 additions and 3 deletions

View file

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

View file

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