mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
remove unused variable
This commit is contained in:
parent
5c9c5f6ebc
commit
a3f8a15c37
2 changed files with 6 additions and 6 deletions
|
@ -990,12 +990,12 @@ def test_deckDue():
|
|||
# add one more with a new deck
|
||||
note = col.newNote()
|
||||
note["Front"] = "two"
|
||||
foobar = note.model()["did"] = col.decks.id("foo::bar")
|
||||
note.model()["did"] = col.decks.id("foo::bar")
|
||||
col.addNote(note)
|
||||
# and one that's a sibling
|
||||
note = col.newNote()
|
||||
note["Front"] = "three"
|
||||
foobaz = note.model()["did"] = col.decks.id("foo::baz")
|
||||
note.model()["did"] = col.decks.id("foo::baz")
|
||||
col.addNote(note)
|
||||
col.reset()
|
||||
assert len(col.decks.all_names_and_ids()) == 5
|
||||
|
@ -1026,7 +1026,7 @@ def test_deckFlow():
|
|||
# and one that's a child
|
||||
note = col.newNote()
|
||||
note["Front"] = "two"
|
||||
default1 = note.model()["did"] = col.decks.id("Default::2")
|
||||
note.model()["did"] = col.decks.id("Default::2")
|
||||
col.addNote(note)
|
||||
# and another that's higher up
|
||||
note = col.newNote()
|
||||
|
|
|
@ -1017,12 +1017,12 @@ def test_deckDue():
|
|||
# add one more with a new deck
|
||||
note = col.newNote()
|
||||
note["Front"] = "two"
|
||||
foobar = note.model()["did"] = col.decks.id("foo::bar")
|
||||
note.model()["did"] = col.decks.id("foo::bar")
|
||||
col.addNote(note)
|
||||
# and one that's a sibling
|
||||
note = col.newNote()
|
||||
note["Front"] = "three"
|
||||
foobaz = note.model()["did"] = col.decks.id("foo::baz")
|
||||
note.model()["did"] = col.decks.id("foo::baz")
|
||||
col.addNote(note)
|
||||
col.reset()
|
||||
assert len(col.decks.all_names_and_ids()) == 5
|
||||
|
@ -1063,7 +1063,7 @@ def test_deckFlow():
|
|||
# and one that's a child
|
||||
note = col.newNote()
|
||||
note["Front"] = "two"
|
||||
default1 = note.model()["did"] = col.decks.id("Default::2")
|
||||
note.model()["did"] = col.decks.id("Default::2")
|
||||
col.addNote(note)
|
||||
# and another that's higher up
|
||||
note = col.newNote()
|
||||
|
|
Loading…
Reference in a new issue