Commit 2694675e authored by Ayush Tiwari's avatar Ayush Tiwari Committed by Ayush Tiwari

bt5_config: Remove tic from live tests

parent 2089e9b7
...@@ -253,20 +253,18 @@ class TestBusinessPackage(ERP5TypeTestCase): ...@@ -253,20 +253,18 @@ class TestBusinessPackage(ERP5TypeTestCase):
path_item_catalog_A = '%s | %s | %s'%(path_catalog_A, 1, 1) path_item_catalog_A = '%s | %s | %s'%(path_catalog_A, 1, 1)
path_item_list_A = [path_item_catalog_A] path_item_list_A = [path_item_catalog_A]
managerA._setTemplatePathList(path_item_list_A) managerA._setTemplatePathList(path_item_list_A)
self.tic()
built_manager_A = managerA.build() built_manager_A = managerA.build()
# Delete the catalog object # Delete the catalog object
self.portal.portal_catalog.manage_delObjects( self.portal.portal_catalog.manage_delObjects(
[test_catalog_A.getId(),]) [test_catalog_A.getId(),])
self.tic()
# Test that the catalog don't exist on site anymore # Test that the catalog don't exist on site anymore
self.assertRaises(KeyError, lambda: self.portal.restrictedTraverse(path_catalog_A)) self.assertRaises(KeyError, lambda: self.portal.restrictedTraverse(path_catalog_A))
# Install the Business Manager A # Install the Business Manager A
portal_templates.installMultipleBusinessManager([built_manager_A]) portal_templates.installMultipleBusinessManager([built_manager_A])
self.tic()
# Test that the catalog exists # Test that the catalog exists
catalog_1 = self.portal.restrictedTraverse(path_catalog_A) catalog_1 = self.portal.restrictedTraverse(path_catalog_A)
...@@ -279,20 +277,18 @@ class TestBusinessPackage(ERP5TypeTestCase): ...@@ -279,20 +277,18 @@ class TestBusinessPackage(ERP5TypeTestCase):
reference = 'erp5-package.Test.Document', reference = 'erp5-package.Test.Document',
data='test data', data='test data',
) )
self.tic()
path_item_document_B = '%s | %s | %s'%(path_document_B.getRelativeUrl(), 1, 1) path_item_document_B = '%s | %s | %s'%(path_document_B.getRelativeUrl(), 1, 1)
managerB._setTemplatePathList([path_item_document_B]) managerB._setTemplatePathList([path_item_document_B])
self.tic()
built_manager_B = managerB.build() built_manager_B = managerB.build()
# Delete the document object # Delete the document object
self.portal.document_module.manage_delObjects( self.portal.document_module.manage_delObjects(
[path_document_B.getId(),]) [path_document_B.getId(),])
self.tic()
# Add an empty path list in managerA # Add an empty path list in managerA
managerA._setTemplatePathList([]) managerA._setTemplatePathList([])
self.tic()
built_manager_A = managerA.build() built_manager_A = managerA.build()
# Try installing built Business Managers A and B together # Try installing built Business Managers A and B together
......
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