From 3ab91c600b5b276ae283e7aae7b9ba4f06615fd9 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 17 Apr 2012 22:23:44 +0900 Subject: [PATCH] fix unit tests --- tests/test_decks.py | 2 +- tests/test_importing.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_decks.py b/tests/test_decks.py index 08e8231bd..ac012f65e 100644 --- a/tests/test_decks.py +++ b/tests/test_decks.py @@ -60,7 +60,7 @@ def test_remove(): c.load() assert c.did == g1 # but if we try to get it, we get the default - assert deck.decks.name(c.did) == "Default" + assert deck.decks.name(c.did) == "[no deck]" # let's create another deck and explicitly set the card to it g2 = deck.decks.id("g2") c.did = g2; c.flush() diff --git a/tests/test_importing.py b/tests/test_importing.py index 5422065a2..d842e04c3 100644 --- a/tests/test_importing.py +++ b/tests/test_importing.py @@ -45,7 +45,7 @@ def test_anki2(): "select count() from cards where nid not in (select id from notes)") assert not dst.db.scalar( "select count() from revlog where cid not in (select id from cards)") - assert dst.fixIntegrity().startswith("Database rebuilt") + assert dst.fixIntegrity()[0].startswith("Database rebuilt") check() # importing should be idempotent imp.run()