Commit 9179bead authored by Sebastien Robin's avatar Sebastien Robin

added erp5_base bt


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5931 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 054ee6ed
......@@ -81,7 +81,7 @@ class TestCMFActivity(ERP5TypeTestCase):
/organisation
"""
return ()
return ('erp5_base',)
def getCategoriesTool(self):
return getattr(self.getPortal(), 'portal_categories', None)
......
......@@ -80,8 +80,7 @@ class TestCMFCategory(ERP5TypeTestCase):
/organisation
"""
#return ('erp5_core',)
return ()
return ('erp5_base',)
def getCategoriesTool(self):
return getattr(self.getPortal(), 'portal_categories', None)
......
......@@ -121,7 +121,7 @@ class TestAccounting(ERP5TypeTestCase):
def getBusinessTemplateList(self):
""" """
return ('erp5_pdm', 'erp5_trade', 'erp5_accounting',)
return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_accounting',)
def stepTic(self, **kw):
self.tic()
......
......@@ -97,7 +97,7 @@ class TestAccountingRules(ERP5TypeTestCase):
def getBusinessTemplateList(self):
""" Return the list of business templates. """
return ('erp5_pdm', 'erp5_trade', 'erp5_accounting')
return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_accounting')
def getAccountModule(self):
return getattr(self.getPortal(), 'account',
......
......@@ -68,7 +68,7 @@ class TestBase(ERP5TypeTestCase):
def getBusinessTemplateList(self):
"""
"""
return ()
return ('erp5_base')
def login(self, quiet=0, run=run_all_test):
uf = self.getPortal().acl_users
......
......@@ -76,7 +76,7 @@ class TestDomainTool(ERP5TypeTestCase):
Return the list of business templates.
"""
return ('erp5_pdm', 'erp5_trade', 'erp5_apparel')
return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_apparel')
def getPortalId(self):
return self.getPortal().getId()
......
......@@ -117,7 +117,8 @@ class TestERP5BankingCashTransfer(ERP5TypeTestCase):
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ( 'erp5_trade' # erp5_trade is not required to make erp5_banking_cash_transfer working.
return ( 'erp5_base' # Organisation,Person,Currency modules
, 'erp5_trade' # erp5_trade is not required to make erp5_banking_cash_transfer working.
# As explained below erp5_trade is just used to help us initialize ressources
# via Internal Packing List.
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
......
......@@ -77,7 +77,7 @@ class TestBudget(ERP5TypeTestCase):
"""
Return the list of required business templates.
"""
return ('erp5_pdm', 'erp5_trade', 'erp5_accounting', 'erp5_budget')
return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_accounting', 'erp5_budget')
def login(self, quiet=QUIET, run=RUN_ALL_TEST):
......
......@@ -76,7 +76,7 @@ class TestERP5Category(ERP5TypeTestCase):
Return the list of business templates.
"""
return ()
return ('erp5_base')
def enableActivityTool(self):
"""
......
......@@ -74,7 +74,7 @@ class TestHR(ERP5TypeTestCase):
"""
Return the list of required business templates.
"""
return ()
return ('erp5_base')
def afterSetUp(self, quiet=QUIET, run=RUN_ALL_TEST):
......
......@@ -96,7 +96,8 @@ class TestImmobilisation(TestOrderMixin, ERP5TypeTestCase):
Return the list of business templates.
"""
return ("erp5_core_patch_immo",
return ("erp5_base",
"erp5_core_patch_immo",
"erp5_trade",
"erp5_pdm", # Needed by accounting
"erp5_accounting",
......
......@@ -68,6 +68,9 @@ class TestInteractionWorkflow(ERP5TypeTestCase):
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ',0,message)
def getBusinessTemplateList(self):
return ('erp5_base',)
def afterSetUp(self):
self.login()
#self.createData()
......
......@@ -80,7 +80,7 @@ class TestOrderMixin:
def getBusinessTemplateList(self):
"""
"""
return ('erp5_pdm', 'erp5_trade', 'erp5_apparel',)
return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_apparel',)
def login(self, quiet=0, run=run_all_test):
uf = self.getPortal().acl_users
......
......@@ -74,7 +74,7 @@ class TestProductionOrderMixin(TestOrderMixin):
def getBusinessTemplateList(self):
"""
"""
return ('erp5_pdm', 'erp5_trade', 'erp5_apparel', 'erp5_mrp')
return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_apparel', 'erp5_mrp')
def createCategories(self):
"""
......
......@@ -63,6 +63,9 @@ class Test(ERP5TypeTestCase):
def getTitle(self):
return "ERP5Catalog"
def getBusinessTemplateList(self):
return ('erp5_base',)
# Different variables used for this test
run_all_test = 1
source_company_id = 'Nexedi'
......
......@@ -53,6 +53,9 @@ class TestERP5Catalog(ERP5TypeTestCase):
def getTitle(self):
return "ERP5Catalog"
def getBusinessTemplateList(self):
return ('erp5_base',)
# Different variables used for this test
run_all_test = 1
......
......@@ -113,7 +113,7 @@ class TestERP5SyncML(ERP5TypeTestCase):
/person_client2 : empty
"""
#return ('sync_crm',)
return ()
return ('erp5_base')
def getSynchronizationTool(self):
return getattr(self.getPortal(), 'portal_synchronizations', None)
......
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