def test_mnemo(): deck = getEmptyDeck() file = unicode(os.path.join(testDir, "support/mnemo.db")) i = MnemosyneImporter(deck, file) i.run() assert deck.cardCount() == 7 assert "a_longer_tag" in deck.tags.all() assert deck.db.scalar("select count() from cards where type = 0") == 1 deck.close()
def test_mnemo(): col = getEmptyCol() file = str(os.path.join(testDir, "support/mnemo.db")) i = MnemosyneImporter(col, file) i.run() assert col.cardCount() == 7 assert "a_longer_tag" in col.tags.all() assert col.db.scalar(f"select count() from cards where type = {CARD_TYPE_NEW}") == 1 col.close()