Commit 866c7ac5 authored by Sebastien Robin's avatar Sebastien Robin

fixed usages of ERP5TypeTestCase because this class

is only a proxy now

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42546 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 889c98fa
...@@ -562,11 +562,12 @@ class TestBPMDummyDeliveryMovementMixin(TestBPMMixin): ...@@ -562,11 +562,12 @@ class TestBPMDummyDeliveryMovementMixin(TestBPMMixin):
return delivery.newContent(portal_type='Dummy Movement', **kw) return delivery.newContent(portal_type='Dummy Movement', **kw)
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
return TestBPMMixin.getBusinessTemplateList(self) \ return super(TestBPMDummyDeliveryMovementMixin, self)\
.getBusinessTemplateList() \
+ ('erp5_dummy_movement', ) + ('erp5_dummy_movement', )
def afterSetUp(self): def afterSetUp(self):
TestBPMMixin.afterSetUp(self) super(TestBPMDummyDeliveryMovementMixin, self).afterSetUp()
if not hasattr(self.portal, 'testing_folder'): if not hasattr(self.portal, 'testing_folder'):
self.portal.newContent(portal_type='Folder', self.portal.newContent(portal_type='Folder',
id='testing_folder') id='testing_folder')
...@@ -574,7 +575,7 @@ class TestBPMDummyDeliveryMovementMixin(TestBPMMixin): ...@@ -574,7 +575,7 @@ class TestBPMDummyDeliveryMovementMixin(TestBPMMixin):
self.stepTic() self.stepTic()
def beforeTearDown(self): def beforeTearDown(self):
TestBPMMixin.beforeTearDown(self) super(TestBPMDummyDeliveryMovementMixin, self).beforeTearDown()
self.portal.deleteContent(id='testing_folder') self.portal.deleteContent(id='testing_folder')
self.stepTic() self.stepTic()
......
...@@ -92,11 +92,11 @@ class TestTradeModelLineMixin(TestBPMMixin, UserDict): ...@@ -92,11 +92,11 @@ class TestTradeModelLineMixin(TestBPMMixin, UserDict):
def afterSetUp(self): def afterSetUp(self):
UserDict.__init__(self) UserDict.__init__(self)
return TestBPMMixin.afterSetUp(self) return super(TestTradeModelLineMixin, self).afterSetUp()
def beforeTearDown(self): def beforeTearDown(self):
UserDict.clear(self) UserDict.clear(self)
return TestBPMMixin.beforeTearDown(self) return super(TestTradeModelLineMixin, self).beforeTearDown()
def clone(self, document): def clone(self, document):
parent = document.getParentValue() parent = document.getParentValue()
......
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