Commit edccff06 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

testERP5Catalog: fix tests for erp5_sql_read_committed_connection.

parent d30f090f
...@@ -311,7 +311,8 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor): ...@@ -311,7 +311,8 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
immediate_reindex=True, immediate_reindex=True,
) )
path_list = [person.getRelativeUrl()] path_list = [person.getRelativeUrl()]
self.checkRelativeUrlInSQLPathList(path_list) self.checkRelativeUrlInSQLPathList(path_list, connection_id='erp5_sql_read_committed_connection')
self.checkRelativeUrlNotInSQLPathList(path_list)
self.tic() self.tic()
self.checkRelativeUrlInSQLPathList(path_list) self.checkRelativeUrlInSQLPathList(path_list)
person_module.manage_delObjects('2') person_module.manage_delObjects('2')
...@@ -325,7 +326,8 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor): ...@@ -325,7 +326,8 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
self.checkRelativeUrlInSQLPathList(path_list) self.checkRelativeUrlInSQLPathList(path_list)
person_module.deleteContent('3') person_module.deleteContent('3')
# Now delete things is made with activities # Now delete things is made with activities
self.checkRelativeUrlNotInSQLPathList(path_list) self.checkRelativeUrlNotInSQLPathList(path_list, connection_id='erp5_sql_read_committed_connection')
self.checkRelativeUrlInSQLPathList(path_list)
self.tic() self.tic()
self.checkRelativeUrlNotInSQLPathList(path_list) self.checkRelativeUrlNotInSQLPathList(path_list)
# Now delete document while its indexation is running # Now delete document while its indexation is running
...@@ -835,7 +837,7 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor): ...@@ -835,7 +837,7 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
# We will delete the connector # We will delete the connector
# in order to make sure it will not work any more # in order to make sure it will not work any more
portal = self.getPortal() portal = self.getPortal()
portal.manage_delObjects('erp5_sql_connection') portal.manage_delObjects('erp5_sql_read_committed_connection')
# Then it must be impossible to delete an object # Then it must be impossible to delete an object
unindex = portal_catalog.unindexObject unindex = portal_catalog.unindexObject
self.assertRaises(AttributeError,unindex,person,uid=person.getUid()) self.assertRaises(AttributeError,unindex,person,uid=person.getUid())
......
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