add the test name to the title of the created Sale Order

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44152 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2007b972
......@@ -269,8 +269,12 @@ class TestOrderMixin(SubcontentReindexingWrapper):
portal = self.getPortal()
order_module = portal.getDefaultModule(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(
title = "Order%s" % order.getId(),
title = "Order%s (%s)" % (order.getId(), test_name),
start_date = self.datetime + 10,
stop_date = self.datetime + 20,
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