From 0db941ed980ad5b285afe00a89d54ae310f9871b Mon Sep 17 00:00:00 2001 From: Arthur Milchior Date: Fri, 17 Jul 2020 17:33:58 +0200 Subject: [PATCH] f3->note3 --- pylib/tests/test_find.py | 8 ++++---- pylib/tests/test_schedv1.py | 12 ++++++------ pylib/tests/test_schedv2.py | 12 ++++++------ 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/pylib/tests/test_find.py b/pylib/tests/test_find.py index cb2a89570..54a650930 100644 --- a/pylib/tests/test_find.py +++ b/pylib/tests/test_find.py @@ -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" diff --git a/pylib/tests/test_schedv1.py b/pylib/tests/test_schedv1.py index 6586564b9..81e5dd99c 100644 --- a/pylib/tests/test_schedv1.py +++ b/pylib/tests/test_schedv1.py @@ -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 diff --git a/pylib/tests/test_schedv2.py b/pylib/tests/test_schedv2.py index f41041860..7b933702f 100644 --- a/pylib/tests/test_schedv2.py +++ b/pylib/tests/test_schedv2.py @@ -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