anki/pylib/tests/test_template.py
Arthur Milchior 4c25835d27 f->note in test
Obtained by sed -i "s/\bf\b/note/g" pylib/tests/*py qt/tests/*py
2020-07-17 06:47:44 +02:00

16 lines
326 B
Python

from tests.shared import getEmptyCol
def test_deferred_frontside():
d = getEmptyCol()
m = d.models.current()
m["tmpls"][0]["qfmt"] = "{{custom:Front}}"
d.models.save(m)
note = d.newNote()
note["Front"] = "xxtest"
note["Back"] = ""
d.addNote(note)
assert "xxtest" in note.cards()[0].a()