Skip to content

Commit

Permalink
f3->note3
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur-Milchior committed Jul 17, 2020
1 parent 9c5bb19 commit 0db941e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions pylib/tests/test_find.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,10 @@ def test_findDupes():
note2["Front"] = "baz"
note2["Back"] = "bar"
col.addNote(note2)
f3 = col.newNote()
f3["Front"] = "quux"
f3["Back"] = "bar"
col.addNote(f3)
note3 = col.newNote()
note3["Front"] = "quux"
note3["Back"] = "bar"
col.addNote(note3)
f4 = col.newNote()
f4["Front"] = "quuux"
f4["Back"] = "nope"
Expand Down
12 changes: 6 additions & 6 deletions pylib/tests/test_schedv1.py
Original file line number Diff line number Diff line change
Expand Up @@ -1066,20 +1066,20 @@ def test_reorder():
col.sched.orderCards(1)
assert note.cards()[0].due == 1
# shifting
f3 = col.newNote()
f3["Front"] = "three"
col.addNote(f3)
note3 = col.newNote()
note3["Front"] = "three"
col.addNote(note3)
f4 = col.newNote()
f4["Front"] = "four"
col.addNote(f4)
assert note.cards()[0].due == 1
assert note2.cards()[0].due == 2
assert f3.cards()[0].due == 3
assert note3.cards()[0].due == 3
assert f4.cards()[0].due == 4
col.sched.sortCards([f3.cards()[0].id, f4.cards()[0].id], start=1, shift=True)
col.sched.sortCards([note3.cards()[0].id, f4.cards()[0].id], start=1, shift=True)
assert note.cards()[0].due == 3
assert note2.cards()[0].due == 4
assert f3.cards()[0].due == 1
assert note3.cards()[0].due == 1
assert f4.cards()[0].due == 2


Expand Down
12 changes: 6 additions & 6 deletions pylib/tests/test_schedv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1102,20 +1102,20 @@ def test_reorder():
col.sched.orderCards(1)
assert note.cards()[0].due == 1
# shifting
f3 = col.newNote()
f3["Front"] = "three"
col.addNote(f3)
note3 = col.newNote()
note3["Front"] = "three"
col.addNote(note3)
f4 = col.newNote()
f4["Front"] = "four"
col.addNote(f4)
assert note.cards()[0].due == 1
assert note2.cards()[0].due == 2
assert f3.cards()[0].due == 3
assert note3.cards()[0].due == 3
assert f4.cards()[0].due == 4
col.sched.sortCards([f3.cards()[0].id, f4.cards()[0].id], start=1, shift=True)
col.sched.sortCards([note3.cards()[0].id, f4.cards()[0].id], start=1, shift=True)
assert note.cards()[0].due == 3
assert note2.cards()[0].due == 4
assert f3.cards()[0].due == 1
assert note3.cards()[0].due == 1
assert f4.cards()[0].due == 2


Expand Down

0 comments on commit 0db941e

Please sign in to comment.