diff --git a/pylib/tests/test_find.py b/pylib/tests/test_find.py index 54a650930..0b22d6fdb 100644 --- a/pylib/tests/test_find.py +++ b/pylib/tests/test_find.py @@ -277,10 +277,10 @@ def test_findDupes(): note3["Front"] = "quux" note3["Back"] = "bar" col.addNote(note3) - f4 = col.newNote() - f4["Front"] = "quuux" - f4["Back"] = "nope" - col.addNote(f4) + note4 = col.newNote() + note4["Front"] = "quuux" + note4["Back"] = "nope" + col.addNote(note4) r = col.findDupes("Back") assert r[0][0] == "bar" assert len(r[0][1]) == 3 diff --git a/pylib/tests/test_schedv1.py b/pylib/tests/test_schedv1.py index 81e5dd99c..0e52b92c5 100644 --- a/pylib/tests/test_schedv1.py +++ b/pylib/tests/test_schedv1.py @@ -1069,18 +1069,18 @@ def test_reorder(): note3 = col.newNote() note3["Front"] = "three" col.addNote(note3) - f4 = col.newNote() - f4["Front"] = "four" - col.addNote(f4) + note4 = col.newNote() + note4["Front"] = "four" + col.addNote(note4) assert note.cards()[0].due == 1 assert note2.cards()[0].due == 2 assert note3.cards()[0].due == 3 - assert f4.cards()[0].due == 4 - col.sched.sortCards([note3.cards()[0].id, f4.cards()[0].id], start=1, shift=True) + assert note4.cards()[0].due == 4 + col.sched.sortCards([note3.cards()[0].id, note4.cards()[0].id], start=1, shift=True) assert note.cards()[0].due == 3 assert note2.cards()[0].due == 4 assert note3.cards()[0].due == 1 - assert f4.cards()[0].due == 2 + assert note4.cards()[0].due == 2 def test_forget(): diff --git a/pylib/tests/test_schedv2.py b/pylib/tests/test_schedv2.py index 7b933702f..a32da9ec0 100644 --- a/pylib/tests/test_schedv2.py +++ b/pylib/tests/test_schedv2.py @@ -1105,18 +1105,18 @@ def test_reorder(): note3 = col.newNote() note3["Front"] = "three" col.addNote(note3) - f4 = col.newNote() - f4["Front"] = "four" - col.addNote(f4) + note4 = col.newNote() + note4["Front"] = "four" + col.addNote(note4) assert note.cards()[0].due == 1 assert note2.cards()[0].due == 2 assert note3.cards()[0].due == 3 - assert f4.cards()[0].due == 4 - col.sched.sortCards([note3.cards()[0].id, f4.cards()[0].id], start=1, shift=True) + assert note4.cards()[0].due == 4 + col.sched.sortCards([note3.cards()[0].id, note4.cards()[0].id], start=1, shift=True) assert note.cards()[0].due == 3 assert note2.cards()[0].due == 4 assert note3.cards()[0].due == 1 - assert f4.cards()[0].due == 2 + assert note4.cards()[0].due == 2 def test_forget():