Commit a071a4fa authored by Vincent Pelletier's avatar Vincent Pelletier

Cleanup: There is no need to rename new catalog.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36247 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2a663fdc
......@@ -1692,14 +1692,11 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
# Create new catalog
portal_catalog = self.getCatalogTool()
original_catalog_id = 'erp5_mysql_innodb'
self.new_catalog_id = self.original_catalog_id + '2'
cp_data = portal_catalog.manage_copyObjects(ids=('erp5_mysql_innodb',))
new_id = portal_catalog.manage_pasteObjects(cp_data)[0]['new_id']
portal_catalog.manage_renameObject(id=new_id, new_id=self.new_catalog_id)
# Parse all methods in the new catalog in order to change the connector
new_catalog = portal_catalog[self.new_catalog_id]
original_catalog = portal_catalog.getSQLCatalog()
original_catalog_id = original_catalog.getId()
cp_data = portal_catalog.manage_copyObjects(ids=(original_catalog_id,))
new_catalog_id = portal_catalog.manage_pasteObjects(cp_data)[0]['new_id']
new_catalog = portal_catalog[new_catalog_id]
# Add new searchable table in new catalog
create_dummy_table_sql = """
......
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