def teardown_class(cls): conn, db = dao.get_conn() conn.delete_index(TESTDB)
def rebuild_db(): '''Rebuild the db''' conn, db = dao.get_conn() conn.delete_index(db) conn.create_index(db)
def teardown_class(cls): conn, db = dao.get_conn() conn.delete_index(TESTDB) for x in os.listdir('test/data/downloads'): os.unlink(os.path.join('test/data/downloads', x)) os.rmdir('test/data/downloads')