d2->col2
This commit is contained in:
parent
e7d75c2c8d
commit
1b4a180fb9
@ -61,14 +61,14 @@ def test_export_anki():
|
|||||||
conf = col.decks.confForDid(did)
|
conf = col.decks.confForDid(did)
|
||||||
assert conf["id"] != 1
|
assert conf["id"] != 1
|
||||||
# connect to new deck
|
# connect to new deck
|
||||||
d2 = aopen(newname)
|
col2 = aopen(newname)
|
||||||
assert d2.cardCount() == 2
|
assert col2.cardCount() == 2
|
||||||
# as scheduling was reset, should also revert decks to default conf
|
# 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
|
assert did
|
||||||
conf2 = d2.decks.confForDid(did)
|
conf2 = col2.decks.confForDid(did)
|
||||||
assert conf2["new"]["perDay"] == 20
|
assert conf2["new"]["perDay"] == 20
|
||||||
dobj = d2.decks.get(did)
|
dobj = col2.decks.get(did)
|
||||||
# conf should be 1
|
# conf should be 1
|
||||||
assert dobj["conf"] == 1
|
assert dobj["conf"] == 1
|
||||||
# try again, limited to a deck
|
# try again, limited to a deck
|
||||||
@ -78,8 +78,8 @@ def test_export_anki():
|
|||||||
os.unlink(newname)
|
os.unlink(newname)
|
||||||
e.did = 1
|
e.did = 1
|
||||||
e.exportInto(newname)
|
e.exportInto(newname)
|
||||||
d2 = aopen(newname)
|
col2 = aopen(newname)
|
||||||
assert d2.cardCount() == 1
|
assert col2.cardCount() == 1
|
||||||
|
|
||||||
|
|
||||||
def test_export_ankipkg():
|
def test_export_ankipkg():
|
||||||
|
Loading…
Reference in New Issue
Block a user