Ensure flag:12 raises an alert
This commit is contained in:
parent
a4cb3debe2
commit
f1c3f124e2
@ -224,6 +224,11 @@ def test_findCards():
|
|||||||
id)
|
id)
|
||||||
assert len(deck.findCards("added:1")) == deck.cardCount() - 1
|
assert len(deck.findCards("added:1")) == deck.cardCount() - 1
|
||||||
assert len(deck.findCards("added:2")) == deck.cardCount()
|
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():
|
def test_findReplace():
|
||||||
deck = getEmptyCol()
|
deck = getEmptyCol()
|
||||||
|
Loading…
Reference in New Issue
Block a user