~nataliabidart/software-center/winged-migration

« back to all changes in this revision

Viewing changes to tests/channel_query.py

  • Committer: Natalia B. Bidart
  • Date: 2012-05-30 18:39:55 UTC
  • mto: This revision was merged to the branch mainline in revision 3030.
  • Revision ID: natalia.bidart@canonical.com-20120530183955-zbnjczayktmmg5tv
- Initial test cleanup:
  - Renamed test/ dir to tests/.
  - Isolated test code into tests/ directory, including moving all the
    get_test_window_foo from the gtk3 production modules to
    tests/gtk3/windows.py module.
  - Removed all the calls to Gtk.main() in gtk3 tests since that blocks the
    execution of the suite.
  - Pep8 and pyflakes fixes in the files already modified in this branch.
  - Minor bug fix in the softwarecenter/log.py module when trying to create a
    log dir with proper perms.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/python
2
 
 
3
1
import os
4
2
import sys
5
3
import xapian
29
27
        #    print "'%s': %s (%s); " % (t.term, t.wdf, t.termfreq),
30
28
        #print "\n"
31
29
    print ";".join(sorted(apps))
32
 
    
 
30
 
33
31
    for i in db.postlist(""):
34
32
        doc = db.get_document(i.docid)
35
33
        for t in doc.termlist():
36
34
            if t.term.startswith("XOL"):
37
35
                print "doc: '%s', term: '%s'" % (doc.get_data(), t.term)
38
 
 
39