anki/pylib/tests/test_template.py
Arthur Milchior 2c73dcb2e5 d->col in tests
obtained by
```
sed -i "s/\bd\b/col/g" pylib/tests/*py qt/tests/*py
```
2020-07-17 06:58:32 +02:00

16 lines
336 B
Python

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