Commit 2c375438 authored by Jérome Perrin's avatar Jérome Perrin

be more precise when searching catalog


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35131 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ce1521d0
......@@ -816,7 +816,7 @@ class TestDocument(TestDocumentMixin):
self.assertSameSet([document_1, document_2], \
getAdvancedSearchTextResultList('make'))
self.assertSameSet([web_page, person], \
getAdvancedSearchTextResultList("Great"))
getAdvancedSearchTextResultList("Great", ('Person', 'Web Page')))
# full text search with whole title of a document
self.assertSameSet([document_3], \
getAdvancedSearchTextResultList(document_3.getTitle()))
......@@ -842,7 +842,8 @@ class TestDocument(TestDocumentMixin):
# full text search with portal_type passed outside searchable_text
self.assertSameSet([web_page, person],
getAdvancedSearchTextResultList('Great'))
getAdvancedSearchTextResultList('Great',
('Person', 'Web Page')))
self.assertSameSet([web_page], \
getAdvancedSearchTextResultList('Great', web_page.getPortalType()))
self.assertSameSet([person], \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment