From f1c3f124e2945b89dfc3c4af30d156e84b601fb9 Mon Sep 17 00:00:00 2001 From: Arthur Milchior Date: Wed, 13 Nov 2019 17:41:34 +0100 Subject: [PATCH] Ensure flag:12 raises an alert --- tests/test_find.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_find.py b/tests/test_find.py index ab4915177..9faa1b7bb 100644 --- a/tests/test_find.py +++ b/tests/test_find.py @@ -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()