Commit 643f9163 authored by Jérome Perrin's avatar Jérome Perrin

simplify testOrder

parent b1365c28
...@@ -328,12 +328,8 @@ class TestOrderMixin(SubcontentReindexingWrapper): ...@@ -328,12 +328,8 @@ class TestOrderMixin(SubcontentReindexingWrapper):
portal = self.getPortal() portal = self.getPortal()
order_module = portal.getDefaultModule(portal_type=self.order_portal_type) order_module = portal.getDefaultModule(portal_type=self.order_portal_type)
order = order_module.newContent(portal_type=self.order_portal_type) order = order_module.newContent(portal_type=self.order_portal_type)
test_name = "%s.%s.%s" % (self.__class__.__module__,
self.__class__.__name__,
self._testMethodName)
order.edit( order.edit(
title = "Order%s (%s)" % (order.getId(), test_name), title = "Order%s (%s)" % (order.getId(), self.id()),
start_date = self.datetime + 10, start_date = self.datetime + 10,
stop_date = self.datetime + 20, stop_date = self.datetime + 20,
specialise = self.business_process, specialise = self.business_process,
......
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