Merge pull request #796 from Arthur-Milchior/comment_test

NF: uses consts and update comment according to code
This commit is contained in:
Damien Elmes 2020-10-21 21:20:52 +10:00 committed by GitHub
commit 73dd7a11ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -135,8 +135,8 @@ def test_learn():
note["Front"] = "one"
note["Back"] = "two"
col.addNote(note)
# set as a learn card and rebuild queues
col.db.execute("update cards set queue=0, type=0")
# set as a new card and rebuild queues
col.db.execute(f"update cards set queue={QUEUE_TYPE_NEW}, type={CARD_TYPE_NEW}")
col.reset()
# sched.getCard should return it, since it's due in the past
c = col.sched.getCard()
@ -215,8 +215,8 @@ def test_learn_collapsed():
note = col.newNote()
note["Front"] = "2"
col.addNote(note)
# set as a learn card and rebuild queues
col.db.execute("update cards set queue=0, type=0")
# set as a new card and rebuild queues
col.db.execute(f"update cards set queue={QUEUE_TYPE_NEW}, type={CARD_TYPE_NEW}")
col.reset()
# should get '1' first
c = col.sched.getCard()

View File

@ -137,8 +137,8 @@ def test_learn():
note["Front"] = "one"
note["Back"] = "two"
col.addNote(note)
# set as a learn card and rebuild queues
col.db.execute("update cards set queue=0, type=0")
# set as a new card and rebuild queues
col.db.execute(f"update cards set queue={QUEUE_TYPE_NEW}, type={CARD_TYPE_NEW}")
col.reset()
# sched.getCard should return it, since it's due in the past
c = col.sched.getCard()
@ -252,8 +252,8 @@ def test_learn_collapsed():
note = col.newNote()
note["Front"] = "2"
col.addNote(note)
# set as a learn card and rebuild queues
col.db.execute("update cards set queue=0, type=0")
# set as a new card and rebuild queues
col.db.execute(f"update cards set queue={QUEUE_TYPE_NEW}, type={CARD_TYPE_NEW}")
col.reset()
# should get '1' first
c = col.sched.getCard()