diff --git a/pylib/tests/test_find.py b/pylib/tests/test_find.py index 1372a9885..cb2a89570 100644 --- a/pylib/tests/test_find.py +++ b/pylib/tests/test_find.py @@ -18,14 +18,14 @@ def test_findCards(): note["Back"] = "cat" note.tags.append("monkey animal_1 * %") col.addNote(note) - f1id = note.id + n1id = note.id firstCardId = note.cards()[0].id note = col.newNote() note["Front"] = "goats are fun" note["Back"] = "sheep" note.tags.append("sheep goat horse animal11") col.addNote(note) - f2id = note.id + n2id = note.id note = col.newNote() note["Front"] = "cat" note["Back"] = "sheep" @@ -91,7 +91,7 @@ def test_findCards(): # nids assert col.findCards("nid:54321") == [] assert len(col.findCards(f"nid:{note.id}")) == 2 - assert len(col.findCards(f"nid:{f1id},{f2id}")) == 2 + assert len(col.findCards(f"nid:{n1id},{n2id}")) == 2 # templates assert len(col.findCards("card:foo")) == 0 assert len(col.findCards('"card:card 1"')) == 4