~mvo/software-center/weblive

« back to all changes in this revision

Viewing changes to test/test_appview.py

  • Committer: Michael Vogt
  • Date: 2011-02-18 10:24:03 UTC
  • Revision ID: michael.vogt@ubuntu.com-20110218102403-en2jh61gkjmu6vgl
fix tests, fix review len calculation bug in appdetailsview_gtk

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
        sorter.add_value(XAPIAN_VALUE_PKGNAME, True)
77
77
        enquire.set_sort_by_key(sorter)
78
78
 
79
 
        matches = enquire.get_mset(0, 20)
 
79
        matches = enquire.get_mset(0, 10)
80
80
        for m in matches:
81
81
            doc = db.get_document(m.docid)
82
82
            #print xapian.sortable_unserialise(doc.get_value(valueno))
85
85
        sorted_by_appstore = []
86
86
        store = AppStore(self.cache, self.db, self.mock_icons, 
87
87
                         sortmode=SORT_BY_CATALOGED_TIME,
88
 
                         limit=20, search_query=query,
 
88
                         limit=10, search_query=query,
89
89
                         nonapps_visible=AppStore.NONAPPS_ALWAYS_VISIBLE)
90
90
        for item in store:
91
91
            sorted_by_appstore.append(item[AppStore.COL_PKGNAME])