From 858aaa7ba32c42a3699355381e7c71471088d7a4 Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Fri, 9 Oct 2009 12:38:47 +0000 Subject: [PATCH] Check that Query with an empty list generates valid SQL git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29522 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Catalog/tests/testERP5Catalog.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/product/ERP5Catalog/tests/testERP5Catalog.py b/product/ERP5Catalog/tests/testERP5Catalog.py index 0764bc12dc..d7ebe446e9 100644 --- a/product/ERP5Catalog/tests/testERP5Catalog.py +++ b/product/ERP5Catalog/tests/testERP5Catalog.py @@ -1381,6 +1381,12 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor): org_e = self._makeOrganisation(title='foo',description='bir') org_f = self._makeOrganisation(title='foo',description='bar') + # uid=[] + catalog_kw= {'query':Query(uid=[])} + self.failIfDifferentSet( + [x.getPath() for x in (org_a, org_b, org_c, org_e, org_f)], + [x.path for x in self.getCatalogTool()( + portal_type='Organisation',**catalog_kw)]) # title='abc' catalog_kw= {'title':Query(title='abc')} self.failIfDifferentSet([org_a.getPath()], -- 2.30.9