mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 16:02:23 -04:00
Ensure flag:12 raises an alert
This commit is contained in:
parent
a4cb3debe2
commit
f1c3f124e2
1 changed files with 5 additions and 0 deletions
|
@ -224,6 +224,11 @@ def test_findCards():
|
|||
id)
|
||||
assert len(deck.findCards("added:1")) == deck.cardCount() - 1
|
||||
assert len(deck.findCards("added:2")) == deck.cardCount()
|
||||
# flag
|
||||
with assert_raises(Exception):
|
||||
deck.findCards("flag:01")
|
||||
with assert_raises(Exception):
|
||||
deck.findCards("flag:12")
|
||||
|
||||
def test_findReplace():
|
||||
deck = getEmptyCol()
|
||||
|
|
Loading…
Reference in a new issue