Commit 48962657 authored by Ayush Tiwari's avatar Ayush Tiwari Committed by 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 b551f15c
...@@ -89,7 +89,7 @@ class TestCopySupport(ERP5TypeTestCase): ...@@ -89,7 +89,7 @@ class TestCopySupport(ERP5TypeTestCase):
person = self.portal.person_module.newContent(portal_type='Person', person = self.portal.person_module.newContent(portal_type='Person',
address_city='Lille') address_city='Lille')
self.tic() self.tic()
getPath = self.portal.portal_catalog.getPath getPath = self.portal.portal_catalog.getpath
address = person.default_address address = person.default_address
self.assertEqual(address.getPath(), getPath(address.getUid())) self.assertEqual(address.getPath(), getPath(address.getUid()))
person.recursiveReindexObject() person.recursiveReindexObject()
......
  • I do not understand this change without more context: to squash in the commit which changes class hierarchy.

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