mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
fix unit test
This commit is contained in:
parent
7c51a7bb16
commit
014dc3d987
1 changed files with 2 additions and 0 deletions
|
@ -103,6 +103,8 @@ def test_templates():
|
||||||
assert c.ord == 0
|
assert c.ord == 0
|
||||||
stripHTML(c.q()) == "2"
|
stripHTML(c.q()) == "2"
|
||||||
# it shouldn't be possible to orphan notes by removing templates
|
# it shouldn't be possible to orphan notes by removing templates
|
||||||
|
t = mm.newTemplate(m)
|
||||||
|
mm.addTemplate(m, t)
|
||||||
assert not d.models.remTemplate(m, m['tmpls'][0])
|
assert not d.models.remTemplate(m, m['tmpls'][0])
|
||||||
|
|
||||||
def test_text():
|
def test_text():
|
||||||
|
|
Loading…
Reference in a new issue