Commit 8914d67b authored by Aurel's avatar Aurel

add parameter site_list when creating categories to make test tun faster


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11527 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2bdb163d
......@@ -87,7 +87,6 @@ class TestERP5BankingCurrencyPurchase(TestERP5BankingMixin, ERP5TypeTestCase):
'erp5_banking_inventory',
'erp5_banking_cash')
def afterSetUp(self):
"""
Method called before the launch of the test to initialize some data
......@@ -103,7 +102,7 @@ class TestERP5BankingCurrencyPurchase(TestERP5BankingMixin, ERP5TypeTestCase):
# variation list is the list of years for banknotes and coins
self.variation_list = ('variation/1992', 'variation/2003')
self.createFunctionGroupSiteCategory()
self.createFunctionGroupSiteCategory(site_list=['paris',])
self.createBanknotesAndCoins()
self.bi_counter = self.paris.surface.banque_interne
......
......@@ -103,7 +103,7 @@ class TestERP5BankingCurrencySale(TestERP5BankingMixin, ERP5TypeTestCase):
# variation list is the list of years for banknotes and coins
self.variation_list = ('variation/1992', 'variation/2003')
self.createFunctionGroupSiteCategory()
self.createFunctionGroupSiteCategory(site_list=['paris',])
self.createBanknotesAndCoins()
# Before the test, we need to input the inventory
......
......@@ -172,7 +172,7 @@ class TestERP5BankingMonetaryIssue(TestERP5BankingMonetaryReceptionMixin, TestER
self.monetary_reception_module = self.getMonetaryReceptionModule()
self.current_date = DateTime()
self.createManagerAndLogin()
self.createFunctionGroupSiteCategory()
self.createFunctionGroupSiteCategory(site_list=['paris',])
self.createBanknotesAndCoins()
self.issue = self.paris.caveau.reserve.encaisse_des_billets_et_monnaies
self.reception = self.paris.caveau.serre.encaisse_des_billets_neufs_non_emis
......
......@@ -102,7 +102,7 @@ class TestERP5BankingMonetaryReception(TestERP5BankingMixin, ERP5TypeTestCase):
self.monetary_reception_module = self.getMonetaryReceptionModule()
self.createManagerAndLogin()
self.createFunctionGroupSiteCategory()
self.createFunctionGroupSiteCategory(site_list=['paris',])
self.createBanknotesAndCoins()
self.reception = self.paris.caveau.serre.encaisse_des_billets_neufs_non_emis
self.checkUserFolderType()
......
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