[Erp5-report] r34623 jerome - /erp5/trunk/products/ERP5Catalog/tests/testERP5Catalog.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Apr 16 14:44:28 CEST 2010


Author: jerome
Date: Fri Apr 16 14:44:27 2010
New Revision: 34623

URL: http://svn.erp5.org?rev=34623&view=rev
Log:
add some data, we had 1 result because this test was only installing one
business template

Modified:
    erp5/trunk/products/ERP5Catalog/tests/testERP5Catalog.py

Modified: erp5/trunk/products/ERP5Catalog/tests/testERP5Catalog.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Catalog/tests/testERP5Catalog.py?rev=34623&r1=34622&r2=34623&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Catalog/tests/testERP5Catalog.py [utf8] (original)
+++ erp5/trunk/products/ERP5Catalog/tests/testERP5Catalog.py [utf8] Fri Apr 16 14:44:27 2010
@@ -3864,10 +3864,14 @@
 
   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))
 




More information about the Erp5-report mailing list