fix unit test

This commit is contained in:
Damien Elmes 2012-09-10 23:53:00 +09:00
parent de04f8bc41
commit 267b7b0035

View file

@ -74,7 +74,7 @@ def test_findCards():
assert len(deck.findCards('"goats are"')) == 1 assert len(deck.findCards('"goats are"')) == 1
# card states # card states
c = f.cards()[0] c = f.cards()[0]
c.queue = 2 c.queue = c.type = 2
assert deck.findCards("is:review") == [] assert deck.findCards("is:review") == []
c.flush() c.flush()
assert deck.findCards("is:review") == [c.id] assert deck.findCards("is:review") == [c.id]