Commit 0d8518ff authored by Romain Courteaud's avatar Romain Courteaud

Check that dms scriptable keys generate valid SQL and do not raise error.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19684 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 834e9dc6
......@@ -651,6 +651,18 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional):
image = image_list[0]
self.assertEquals('embedded', image.getValidationState())
def test_09_ScriptableKeys(self, quiet=QUIET, run=RUN_ALL_TEST):
"""
Check the default DMS scriptale keys
"""
if not run: return
printAndLog('\nScriptable Keys')
# Check that SQL generated is valid
self.portal.portal_catalog(advanced_search_text='')
self.portal.portal_catalog(advanced_search_text='a search text')
self.portal.portal_catalog(portal_search_text='')
self.portal.portal_catalog(portal_search_text='a search text')
class TestDocumentWithSecurity(ERP5TypeTestCase):
......
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