made the test more precise by checking the anki version
This commit is contained in:
parent
69baea296a
commit
a96e10e840
@ -1,4 +1,5 @@
|
|||||||
from conftest import ac
|
from conftest import ac
|
||||||
|
from plugin import anki_version
|
||||||
|
|
||||||
|
|
||||||
def test_modelNames(setup):
|
def test_modelNames(setup):
|
||||||
@ -234,7 +235,9 @@ class TestModelFieldNames:
|
|||||||
|
|
||||||
result = ac.modelFieldDescriptions(modelName="test_model")
|
result = ac.modelFieldDescriptions(modelName="test_model")
|
||||||
|
|
||||||
if set_desc:
|
if anki_version < (2, 1, 50):
|
||||||
assert result == ["test description", ""]
|
assert not set_desc
|
||||||
else:
|
|
||||||
assert result == ["", ""]
|
assert result == ["", ""]
|
||||||
|
else:
|
||||||
|
assert set_desc
|
||||||
|
assert result == ["test description", ""]
|
||||||
|
Loading…
Reference in New Issue
Block a user