This commit is contained in:
Arthur Milchior 2020-07-17 17:55:57 +02:00
parent e7d75c2c8d
commit 1b4a180fb9

View File

@ -61,14 +61,14 @@ def test_export_anki():
conf = col.decks.confForDid(did)
assert conf["id"] != 1
# connect to new deck
d2 = aopen(newname)
assert d2.cardCount() == 2
col2 = aopen(newname)
assert col2.cardCount() == 2
# as scheduling was reset, should also revert decks to default conf
did = d2.decks.id("test", create=False)
did = col2.decks.id("test", create=False)
assert did
conf2 = d2.decks.confForDid(did)
conf2 = col2.decks.confForDid(did)
assert conf2["new"]["perDay"] == 20
dobj = d2.decks.get(did)
dobj = col2.decks.get(did)
# conf should be 1
assert dobj["conf"] == 1
# try again, limited to a deck
@ -78,8 +78,8 @@ def test_export_anki():
os.unlink(newname)
e.did = 1
e.exportInto(newname)
d2 = aopen(newname)
assert d2.cardCount() == 1
col2 = aopen(newname)
assert col2.cardCount() == 1
def test_export_ankipkg():