mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
test that if two decks differs only by case, they are renamed
This commit is contained in:
parent
6aacd7782f
commit
9a40f29bce
1 changed files with 11 additions and 0 deletions
|
@ -158,3 +158,14 @@ def test_renameForDragAndDrop():
|
|||
# '' is a convenient alias for the top level DID
|
||||
d.decks.renameForDragAndDrop(hsk_did, '')
|
||||
assert deckNames() == [ 'Chinese', 'HSK', 'Languages' ]
|
||||
|
||||
def test_check():
|
||||
d = getEmptyCol()
|
||||
|
||||
foo_did = d.decks.id("foo")
|
||||
FOO_did = d.decks.id("bar")
|
||||
FOO = d.decks.byName("bar")
|
||||
FOO["name"] = "FOO"
|
||||
d.decks.save(FOO)
|
||||
d.decks._checkDeckTree()
|
||||
assert "foo" not in d.decks.allNames() or "FOO" not in d.decks.allNames()
|
||||
|
|
Loading…
Reference in a new issue