mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
fix cloze test
This commit is contained in:
parent
bee3422a72
commit
0c1e98d0b2
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ def test_cloze():
|
||||||
f = d.newNote()
|
f = d.newNote()
|
||||||
f['Text'] = "hello {{c1::world::typical}}"
|
f['Text'] = "hello {{c1::world::typical}}"
|
||||||
assert d.addNote(f) == 1
|
assert d.addNote(f) == 1
|
||||||
assert "<span class=cloze>[typical...]</span>" in f.cards()[0].q()
|
assert "<span class=cloze>[typical]</span>" in f.cards()[0].q()
|
||||||
assert "<span class=cloze>world</span>" in f.cards()[0].a()
|
assert "<span class=cloze>world</span>" in f.cards()[0].a()
|
||||||
# and with 2 clozes
|
# and with 2 clozes
|
||||||
f = d.newNote()
|
f = d.newNote()
|
||||||
|
|
Loading…
Reference in a new issue