Commit d43e6930 authored by Ayush Tiwari's avatar Ayush Tiwari

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.
parent 3f7abc5b
......@@ -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()
......
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