mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
fix model unit test
This commit is contained in:
parent
aef7626557
commit
3614a13a50
1 changed files with 0 additions and 3 deletions
|
@ -24,9 +24,6 @@ def test_modelCopy():
|
||||||
assert len(m2['flds']) == len(m['flds'])
|
assert len(m2['flds']) == len(m['flds'])
|
||||||
assert len(m['tmpls']) == 2
|
assert len(m['tmpls']) == 2
|
||||||
assert len(m2['tmpls']) == 2
|
assert len(m2['tmpls']) == 2
|
||||||
# name changed
|
|
||||||
assert deck.models.scmhash(m) != deck.models.scmhash(m2)
|
|
||||||
m2['name'] = "Basic"
|
|
||||||
assert deck.models.scmhash(m) == deck.models.scmhash(m2)
|
assert deck.models.scmhash(m) == deck.models.scmhash(m2)
|
||||||
|
|
||||||
def test_fields():
|
def test_fields():
|
||||||
|
|
Loading…
Reference in a new issue