mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 16:02:23 -04:00
fix unit tests
This commit is contained in:
parent
3f80c62942
commit
bb62a3c1af
1 changed files with 2 additions and 2 deletions
|
@ -190,7 +190,7 @@ def test_relearn():
|
|||
# immediately graduate it
|
||||
d.sched.answerCard(c, 4)
|
||||
assert c.queue == c.type == 2
|
||||
assert c.ivl == 1
|
||||
assert c.ivl == 2
|
||||
assert c.due == d.sched.today + c.ivl
|
||||
|
||||
def test_relearn_no_steps():
|
||||
|
@ -549,7 +549,7 @@ def test_nextIvl():
|
|||
c.factor = STARTING_FACTOR
|
||||
assert ni(c, 1) == 60
|
||||
assert ni(c, 3) == 100*86400
|
||||
assert ni(c, 4) == 100*86400
|
||||
assert ni(c, 4) == 101*86400
|
||||
# review cards
|
||||
##################################################
|
||||
c.queue = 2
|
||||
|
|
Loading…
Reference in a new issue