Commit 87bc04bd authored by Julien Muchembled's avatar Julien Muchembled

Some cleanup in TestERP5Commerce

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41618 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f7440285
...@@ -34,7 +34,6 @@ import urllib ...@@ -34,7 +34,6 @@ import urllib
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.utils import FileUpload from Products.ERP5Type.tests.utils import FileUpload
from Products.ERP5.tests.utils import newSimulationExpectedFailure
SESSION_ID = "12345678" SESSION_ID = "12345678"
LANGUAGE_LIST = ('en', 'fr', 'de', 'bg',) LANGUAGE_LIST = ('en', 'fr', 'de', 'bg',)
...@@ -91,6 +90,7 @@ class TestCommerce(ERP5TypeTestCase): ...@@ -91,6 +90,7 @@ class TestCommerce(ERP5TypeTestCase):
Product_getRelatedDescription Product_getRelatedDescription
Person_editPersonalInformation Person_editPersonalInformation
""" """
business_process = 'business_process_module/erp5_default_business_process'
def getTitle(self): def getTitle(self):
return "E-Commerce System" return "E-Commerce System"
...@@ -161,7 +161,7 @@ class TestCommerce(ERP5TypeTestCase): ...@@ -161,7 +161,7 @@ class TestCommerce(ERP5TypeTestCase):
# add default trade condition # add default trade condition
condition = condition_module.newContent(id="default_trade_condition", condition = condition_module.newContent(id="default_trade_condition",
portal_type="Sale Trade Condition", portal_type="Sale Trade Condition",
specialise="business_process_module/erp5_default_business_process") specialise=self.business_process)
condition.validate() condition.validate()
# validate default order rule # validate default order rule
......
...@@ -28,4 +28,6 @@ ...@@ -28,4 +28,6 @@
from Products.ERP5Legacy.tests import Legacy_getBusinessTemplateList from Products.ERP5Legacy.tests import Legacy_getBusinessTemplateList
from Products.ERP5.tests.testERP5Commerce import * from Products.ERP5.tests.testERP5Commerce import *
TestCommerce.business_process = None
Legacy_getBusinessTemplateList(TestCommerce) Legacy_getBusinessTemplateList(TestCommerce)
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