From e9a08e95357a22253d8f8c1dfe6f840f50c0287e Mon Sep 17 00:00:00 2001 From: Ayush Tiwari <ayush.tiwari@nexedi.com> Date: Thu, 16 Jun 2016 14:52:59 +0000 Subject: [PATCH] erp5_catalog: Update testCopySupport according to changes in portal_catalog Its better to change the tests where they need to call getpath function of portal_catalog to use portal_catalog.getpath instead of portal_catalog.getPath, as we have overridden the 'getPath' function for CatalogTool class due to change in inherited class. --- product/ERP5Type/tests/testCopySupport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5Type/tests/testCopySupport.py b/product/ERP5Type/tests/testCopySupport.py index 8456718fce..57b810db60 100644 --- a/product/ERP5Type/tests/testCopySupport.py +++ b/product/ERP5Type/tests/testCopySupport.py @@ -89,7 +89,7 @@ class TestCopySupport(ERP5TypeTestCase): person = self.portal.person_module.newContent(portal_type='Person', address_city='Lille') self.tic() - getPath = self.portal.portal_catalog.getPath + getPath = self.portal.portal_catalog.getpath address = person.default_address self.assertEqual(address.getPath(), getPath(address.getUid())) person.recursiveReindexObject() -- GitLab