Commit 412495d6 authored by Vincent Pelletier's avatar Vincent Pelletier

This test is known not to work because of the lack of a feature in catalog...

This test is known not to work because of the lack of a feature in catalog code. Hence, tag it as TODO.
As this assertion uses locally-defined variables, instead of isolating it in another test method, define a local function.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25451 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 76ce2d58
...@@ -37,7 +37,7 @@ from zLOG import LOG ...@@ -37,7 +37,7 @@ from zLOG import LOG
from DateTime import DateTime from DateTime import DateTime
from Products.CMFCore.tests.base.testcase import LogInterceptor from Products.CMFCore.tests.base.testcase import LogInterceptor
from Testing.ZopeTestCase.PortalTestCase import PortalTestCase from Testing.ZopeTestCase.PortalTestCase import PortalTestCase
from Products.ERP5Type.tests.utils import createZODBPythonScript from Products.ERP5Type.tests.utils import createZODBPythonScript, todo_erp5
from Products.ZSQLCatalog.ZSQLCatalog import HOT_REINDEXING_FINISHED_STATE,\ from Products.ZSQLCatalog.ZSQLCatalog import HOT_REINDEXING_FINISHED_STATE,\
HOT_REINDEXING_RECORDING_STATE, HOT_REINDEXING_DOUBLE_INDEXING_STATE HOT_REINDEXING_RECORDING_STATE, HOT_REINDEXING_DOUBLE_INDEXING_STATE
from Products.CMFActivity.Errors import ActivityFlushError from Products.CMFActivity.Errors import ActivityFlushError
...@@ -2280,7 +2280,17 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor): ...@@ -2280,7 +2280,17 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
query = ComplexQuery(query_find_european, query = ComplexQuery(query_find_european,
query_find_name_erp5, query_find_name_erp5,
operator='OR') operator='OR')
self.assertEqual(len(catalog(query=query)), 3)
@todo_erp5
def todo():
"""
This test is expected to fail with current code.
Adding support for this is required, and is not trivial.
Hence, mark it as TODO to silence this always-failing test.
"""
self.assertEqual(len(catalog(query=query)), 3)
todo()
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()
......
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