Attachment 'xapian.txt'
Download 1 ============================= test session starts ==============================
2 python: platform linux2 -- Python 2.6.2
3 test object 1: /home/user/workspace/moin-1.9-xapian-dmilajevs/MoinMoin/search/_tests
4
5 test_search.py .................................F...F..FFF.F..F...
6
7 =================================== FAILURES ===================================
8 ____________ TestXapianSearch.test_prefix_search['linkto re_test'] _____________
9
10 prefix = 'linkto', term = 'FrontPage'
11
12 def re_test(prefix, term):
13 result = search.searchPages(self.request, ur"%s:re:\b%s\b" % (prefix, term))
14 > assert result.hits
15 E assert []
16 E + where [] = <MoinMoin.search.results.SearchResults instance at 0x2b22f80>.hits
17
18 test_search.py:87: AssertionError
19 ___________ TestXapianSearch.test_prefix_search['category re_test'] ____________
20
21 prefix = 'category', term = 'CategoryHomepage'
22
23 def re_test(prefix, term):
24 result = search.searchPages(self.request, ur"%s:re:\b%s\b" % (prefix, term))
25 > assert result.hits
26 E assert []
27 E + where [] = <MoinMoin.search.results.SearchResults instance at 0x2ecccf8>.hits
28
29 test_search.py:87: AssertionError
30 _________ TestXapianSearch.test_prefix_search['mimetype simple_test'] __________
31
32 prefix = 'mimetype', term = 'text/text'
33
34 def simple_test(prefix, term):
35 result = search.searchPages(self.request, u"%s:%s" % (prefix, term))
36 > assert result.hits
37 E assert []
38 E + where [] = <MoinMoin.search.results.SearchResults instance at 0x32b43b0>.hits
39
40 test_search.py:81: AssertionError
41 ___________ TestXapianSearch.test_prefix_search['mimetype re_test'] ____________
42
43 prefix = 'mimetype', term = 'text/text'
44
45 def re_test(prefix, term):
46 result = search.searchPages(self.request, ur"%s:re:\b%s\b" % (prefix, term))
47 > assert result.hits
48 E assert []
49 E + where [] = <MoinMoin.search.results.SearchResults instance at 0x240a9e0>.hits
50
51 test_search.py:87: AssertionError
52 _________ TestXapianSearch.test_prefix_search['language simple_test'] __________
53
54 prefix = 'language', term = 'en'
55
56 def simple_test(prefix, term):
57 result = search.searchPages(self.request, u"%s:%s" % (prefix, term))
58 > assert result.hits
59 E assert []
60 E + where [] = <MoinMoin.search.results.SearchResults instance at 0x398e200>.hits
61
62 test_search.py:81: AssertionError
63 _____________________ TestXapianSearch.testTitleSearchAND ______________________
64
65 self = <test_search.TestXapianSearch object at 0x40f86d0>
66
67 def testTitleSearchAND(self):
68 """ search: title search with AND expression """
69 result = search.searchPages(self.request, u"title:Help title:Index")
70 > assert len(result.hits) == 1
71 E assert 0 == 1
72 E + where 0 = len([])
73 E + where [] = <MoinMoin.search.results.SearchResults instance at 0x5e76e18>.hits
74
75 test_search.py:118: AssertionError
76 _________________ TestXapianSearch.testTitleSearchNegativeTerm _________________
77
78 self = <test_search.TestXapianSearch object at 0x38c94d0>
79
80 def testTitleSearchNegativeTerm(self):
81 """ search: title search for a AND expression with a negative term """
82 helpon_count = len(search.searchPages(self.request, u"title:HelpOn").hits)
83 result = search.searchPages(self.request, u"title:HelpOn -title:AccessControlLists")
84 > assert len(result.hits) == helpon_count - 1 # finds all HelpOn* except one
85 E assert 0 == (0 - 1)
86 E + where 0 = len([])
87 E + where [] = <MoinMoin.search.results.SearchResults instance at 0x4d891b8>.hits
88
89 test_search.py:137: AssertionError
90 ==================== 7 failed, 44 passed in 120.95 seconds =====================
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.