Commit 20ec0a80 authored by Yusuke Muraoka's avatar Yusuke Muraoka

complex query shall raise an exception when buggy case.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33146 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9ad09f95
...@@ -2351,11 +2351,16 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor): ...@@ -2351,11 +2351,16 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
operator='AND') operator='AND')
self.assertEqual(len(catalog(query=query_find_name_erp5)), 2) self.assertEqual(len(catalog(query=query_find_name_erp5)), 2)
query = ComplexQuery(query_find_european, try:
query_find_name_erp5, query = ComplexQuery(query_find_european,
operator='OR') query_find_name_erp5,
self.assertEqual(len(catalog(query=query)), 3) operator='OR')
except NotImplementedError:
# correct behaviour for now
raise
else:
self.fail("In this query pattern, ComplexQuery doesn't return valid result.")
def test_check_security_table_content(self, quiet=quiet, run=run_all_test): def test_check_security_table_content(self, quiet=quiet, run=run_all_test):
sql_connection = self.getSQLConnection() sql_connection = self.getSQLConnection()
portal = self.getPortalObject() portal = self.getPortalObject()
......
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