f->n in id
This commit is contained in:
parent
93ad194862
commit
9c5bb199d0
@ -18,14 +18,14 @@ def test_findCards():
|
|||||||
note["Back"] = "cat"
|
note["Back"] = "cat"
|
||||||
note.tags.append("monkey animal_1 * %")
|
note.tags.append("monkey animal_1 * %")
|
||||||
col.addNote(note)
|
col.addNote(note)
|
||||||
f1id = note.id
|
n1id = note.id
|
||||||
firstCardId = note.cards()[0].id
|
firstCardId = note.cards()[0].id
|
||||||
note = col.newNote()
|
note = col.newNote()
|
||||||
note["Front"] = "goats are fun"
|
note["Front"] = "goats are fun"
|
||||||
note["Back"] = "sheep"
|
note["Back"] = "sheep"
|
||||||
note.tags.append("sheep goat horse animal11")
|
note.tags.append("sheep goat horse animal11")
|
||||||
col.addNote(note)
|
col.addNote(note)
|
||||||
f2id = note.id
|
n2id = note.id
|
||||||
note = col.newNote()
|
note = col.newNote()
|
||||||
note["Front"] = "cat"
|
note["Front"] = "cat"
|
||||||
note["Back"] = "sheep"
|
note["Back"] = "sheep"
|
||||||
@ -91,7 +91,7 @@ def test_findCards():
|
|||||||
# nids
|
# nids
|
||||||
assert col.findCards("nid:54321") == []
|
assert col.findCards("nid:54321") == []
|
||||||
assert len(col.findCards(f"nid:{note.id}")) == 2
|
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
|
# templates
|
||||||
assert len(col.findCards("card:foo")) == 0
|
assert len(col.findCards("card:foo")) == 0
|
||||||
assert len(col.findCards('"card:card 1"')) == 4
|
assert len(col.findCards('"card:card 1"')) == 4
|
||||||
|
Loading…
Reference in New Issue
Block a user