[Erp5-report] r43287 ivan - /erp5/trunk/products/ERP5OOo/tests/testDms.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Feb 11 15:15:50 CET 2011
Author: ivan
Date: Fri Feb 11 15:15:49 2011
New Revision: 43287
URL: http://svn.erp5.org?rev=43287&view=rev
Log:
Add '*' in front of all 'natural' mode full text queries so full text query key is able to detect we need natural mode. Test is expected to pass.
Modified:
erp5/trunk/products/ERP5OOo/tests/testDms.py
Modified: erp5/trunk/products/ERP5OOo/tests/testDms.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/testDms.py?rev=43287&r1=43286&r2=43287&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] Fri Feb 11 15:15:49 2011
@@ -1017,7 +1017,6 @@ class TestDocument(TestDocumentMixin):
parsed_string = parse(search_string)
self.assertEquals(parsed_string['portal_type'], ['Document','Presentation','"Web Page"'])
- @expectedFailure
def test_11_Base_getAdvancedSearchResultList(self):
"""
Test search string search capabilities using Base_getAdvancedSearchResultList script.
@@ -1097,11 +1096,13 @@ class TestDocument(TestDocumentMixin):
self.assertSameSet([document_1,web_page_1], getAdvancedSearchStringResultList(**kw))
# exact word search
- kw = {'searchabletext_phrase': 'linux python'}
+ kw = {'searchabletext_any': '*',
+ 'searchabletext_phrase': 'linux python'}
self.assertSameSet([document_1], getAdvancedSearchStringResultList(**kw))
- kw = {'searchabletext_phrase': 'python linux'}
+ kw = {'searchabletext_any': '*',
+ 'searchabletext_phrase': 'python linux'}
self.assertSameSet([document_2], getAdvancedSearchStringResultList(**kw))
- kw = {'searchabletext_any': '',
+ kw = {'searchabletext_any': '*',
'searchabletext_phrase': 'python linux knowledge system'}
self.assertSameSet([document_2], getAdvancedSearchStringResultList(**kw))
More information about the Erp5-report
mailing list