From 9c5bb199d0576ef7f3987851a9dd86b04361d125 Mon Sep 17 00:00:00 2001 From: Arthur Milchior Date: Fri, 17 Jul 2020 17:30:29 +0200 Subject: [PATCH] f->n in id --- pylib/tests/test_find.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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