2020-01-12 06:15:46 +01:00
|
|
|
from tests.shared import getEmptyCol
|
2019-12-22 04:28:29 +01:00
|
|
|
|
|
|
|
|
2020-01-12 06:15:46 +01:00
|
|
|
def test_deferred_frontside():
|
|
|
|
d = getEmptyCol()
|
|
|
|
m = d.models.current()
|
|
|
|
m["tmpls"][0]["qfmt"] = "{{custom:Front}}"
|
|
|
|
d.models.save(m)
|
|
|
|
|
|
|
|
f = d.newNote()
|
|
|
|
f["Front"] = "xxtest"
|
|
|
|
f["Back"] = ""
|
|
|
|
d.addNote(f)
|
|
|
|
|
|
|
|
assert "xxtest" in f.cards()[0].a()
|