Commit d9409df7 authored by Vincent Pelletier's avatar Vincent Pelletier

Add other valid rendering variations.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25441 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8df64b4d
...@@ -892,7 +892,7 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor): ...@@ -892,7 +892,7 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
self.assertTrue( self.assertTrue(
self.getCatalogTool().buildSQLQuery( self.getCatalogTool().buildSQLQuery(
sort_on=(('catalog.title', 'ascending'),))['order_by_expression'] in \ sort_on=(('catalog.title', 'ascending'),))['order_by_expression'] in \
('catalog.title', '`catalog`.`title` ASC')) ('catalog.title', '`catalog`.`title` ASC', 'catalog.title ASC'))
def test_25_SortOnDescending(self, quiet=quiet, run=run_all_test): def test_25_SortOnDescending(self, quiet=quiet, run=run_all_test):
if not run: return if not run: return
...@@ -965,7 +965,7 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor): ...@@ -965,7 +965,7 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
sort_on=(('catalog.title', 'ascending'), sort_on=(('catalog.title', 'ascending'),
('catalog.id', 'asc'))) ('catalog.id', 'asc')))
['order_by_expression'].replace(' ', '') in \ ['order_by_expression'].replace(' ', '') in \
('catalog.title,catalog.id', '`catalog`.`title`ASC,`catalog`.`id`ASC')) ('catalog.title,catalog.id', '`catalog`.`title`ASC,`catalog`.`id`ASC', 'catalog.titleASC,catalog.idASC'))
def test_29_SortOnRelatedKey(self, quiet=quiet, run=run_all_test): def test_29_SortOnRelatedKey(self, quiet=quiet, run=run_all_test):
"""Sort-on parameter and related key. (Assumes that region_title is a \ """Sort-on parameter and related key. (Assumes that region_title is a \
......
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