Commit 858aaa7b authored by Romain Courteaud's avatar Romain Courteaud

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
parent 9114945a
......@@ -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()],
......
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