Commit f1d72108 authored by Jérome Perrin's avatar Jérome Perrin

add some data, we had 1 result because this test was only installing one

business template


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34623 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent aed987fc
......@@ -3864,10 +3864,14 @@ VALUES
def test_distinct_select_expression(self, quiet=quiet, run=run_all_test):
if not run: return
person = self.portal.person_module.newContent(portal_type='Person')
get_transaction().commit()
self.tic()
portal_catalog = self.getCatalogTool()
res = portal_catalog.searchResults(
select_expression='count(DISTINCT catalog.reference) AS count_reference',
group_by_expression='catalog.reference',
portal_type='Person',
)
self.assertEquals(1, len(res))
......
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