~kevang/mnemosyne-proj/grade-shortcuts-improvements

« back to all changes in this revision

Viewing changes to mnemosyne/tests/test_db_import.py

  • Committer: Peter.Bienstman at UGent
  • Date: 2015-01-27 19:27:01 UTC
  • Revision ID: peter.bienstman@ugent.be-20150127192701-du8t8un4icca1nba
Small fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
        self.db_importer().do_import(filename)
65
65
        assert last_error == ""
66
66
        db = self.database()
67
 
        print db.con.execute("select count() from log").fetchone()[0]
68
 
        assert db.con.execute("select count() from log").fetchone()[0] == 268
 
67
        assert db.con.execute("select count() from log where event_type != 26").fetchone()[0] == 258
69
68
        self.review_controller().reset()
70
 
        assert self.database().card_count() == 6
71
 
        assert self.database().active_count() == 5
 
69
        assert self.database().card_count() == 7
 
70
        assert self.database().active_count() == 6
 
71
        assert self.database().fact_count() == 5
72
72
        card_type = self.database().card_type("2::new clone", is_id_internal=False)
73
73
        assert self.config().card_type_property("background_colour", card_type) == 4278233600
74
74