Commit 265fc629 authored by Sebastien Robin's avatar Sebastien Robin

define the list of businness templates into the mixin class


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13607 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 111c142d
...@@ -44,6 +44,20 @@ class TestERP5BankingMixin: ...@@ -44,6 +44,20 @@ class TestERP5BankingMixin:
Mixin class for unit test of banking operations Mixin class for unit test of banking operations
""" """
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_cash',
'erp5_banking_check')
def enableLightInstall(self): def enableLightInstall(self):
""" """
......
...@@ -90,22 +90,6 @@ class TestERP5BankingAccountIncident(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -90,22 +90,6 @@ class TestERP5BankingAccountIncident(TestERP5BankingMixin, ERP5TypeTestCase):
""" """
return "ERP5BankingAccountIncident" return "ERP5BankingAccountIncident"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for cash transfer
)
def getAccountIncidentModule(self): def getAccountIncidentModule(self):
""" """
Return the Cash Transer Module Return the Cash Transer Module
......
...@@ -78,23 +78,6 @@ class TestERP5BankingAvailableInventory(TestERP5BankingCheckPaymentMixin, ...@@ -78,23 +78,6 @@ class TestERP5BankingAvailableInventory(TestERP5BankingCheckPaymentMixin,
""" """
return "ERP5BankingAvailabeInventory" return "ERP5BankingAvailabeInventory"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_cash',
'erp5_banking_check')
def afterSetUp(self): def afterSetUp(self):
""" """
Method called before the launch of the test to initialize some data Method called before the launch of the test to initialize some data
......
...@@ -81,22 +81,6 @@ class TestERP5BankingCashBalanceRegulation(TestERP5BankingMixin, ERP5TypeTestCas ...@@ -81,22 +81,6 @@ class TestERP5BankingCashBalanceRegulation(TestERP5BankingMixin, ERP5TypeTestCas
Return the title of the test Return the title of the test
""" """
return "ERP5BankingCashBalanceRegulation" return "ERP5BankingCashBalanceRegulation"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ( 'erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash_balance_regulation contains all method for cash sorting
)
def getCashBalanceRegulationModule(self): def getCashBalanceRegulationModule(self):
""" """
......
...@@ -61,22 +61,6 @@ class TestERP5BankingCashClassification(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -61,22 +61,6 @@ class TestERP5BankingCashClassification(TestERP5BankingMixin, ERP5TypeTestCase):
""" """
return "ERP5BankingCashClassification" return "ERP5BankingCashClassification"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ( 'erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for cash sorting
)
def getCashSortingModule(self): def getCashSortingModule(self):
""" """
Return the Cash Sorting Module Return the Cash Sorting Module
......
...@@ -83,22 +83,6 @@ class TestERP5BankingCashExchange(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -83,22 +83,6 @@ class TestERP5BankingCashExchange(TestERP5BankingMixin, ERP5TypeTestCase):
""" """
return "ERP5BankingCashExchange" return "ERP5BankingCashExchange"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ( 'erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash'
)
def getCashExchangeModule(self): def getCashExchangeModule(self):
""" """
Return the Cash Exchange Module Return the Cash Exchange Module
......
...@@ -90,22 +90,6 @@ class TestERP5BankingCashIncident(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -90,22 +90,6 @@ class TestERP5BankingCashIncident(TestERP5BankingMixin, ERP5TypeTestCase):
""" """
return "ERP5BankingCashIncident" return "ERP5BankingCashIncident"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for cash transfer
)
def getCashIncidentModule(self): def getCashIncidentModule(self):
""" """
Return the Cash Transer Module Return the Cash Transer Module
......
...@@ -70,22 +70,6 @@ class TestERP5BankingInventory(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -70,22 +70,6 @@ class TestERP5BankingInventory(TestERP5BankingMixin, ERP5TypeTestCase):
""" """
return "ERP5BankingInventory" return "ERP5BankingInventory"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory'
)
def afterSetUp(self): def afterSetUp(self):
""" """
Method called before the launch of the test to initialize some data Method called before the launch of the test to initialize some data
......
...@@ -103,23 +103,6 @@ class TestERP5BankingCashMovement(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -103,23 +103,6 @@ class TestERP5BankingCashMovement(TestERP5BankingMixin, ERP5TypeTestCase):
""" """
return "ERP5BankingCashMovement" return "ERP5BankingCashMovement"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash'
# erp5_banking_cash contains all method for cash movement
)
def getCashMovementModule(self): def getCashMovementModule(self):
""" """
Return the Vault Transer Module Return the Vault Transer Module
......
...@@ -61,22 +61,6 @@ class TestERP5BankingCashSorting(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -61,22 +61,6 @@ class TestERP5BankingCashSorting(TestERP5BankingMixin, ERP5TypeTestCase):
""" """
return "ERP5BankingCashSorting" return "ERP5BankingCashSorting"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ( 'erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for cash sorting
)
def getCashSortingModule(self): def getCashSortingModule(self):
""" """
Return the Cash Sorting Module Return the Cash Sorting Module
......
...@@ -90,22 +90,6 @@ class TestERP5BankingCashSortingIncident(TestERP5BankingMixin, ERP5TypeTestCase) ...@@ -90,22 +90,6 @@ class TestERP5BankingCashSortingIncident(TestERP5BankingMixin, ERP5TypeTestCase)
""" """
return "ERP5BankingCashSortingIncident" return "ERP5BankingCashSortingIncident"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for cash transfer
)
def getCashSortingIncidentModule(self): def getCashSortingIncidentModule(self):
""" """
Return the Cash Transer Module Return the Cash Transer Module
......
...@@ -83,22 +83,6 @@ class TestERP5BankingCashToCurrencyPurchase(TestERP5BankingMixin, ERP5TypeTestCa ...@@ -83,22 +83,6 @@ class TestERP5BankingCashToCurrencyPurchase(TestERP5BankingMixin, ERP5TypeTestCa
""" """
return "ERP5BankingCashToCurrencyPurchase" return "ERP5BankingCashToCurrencyPurchase"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ( 'erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash'
)
def getCashToCurrencyPurchaseModule(self): def getCashToCurrencyPurchaseModule(self):
""" """
Return the Cash To Currency Purchase Module Return the Cash To Currency Purchase Module
......
...@@ -82,22 +82,6 @@ class TestERP5BankingCashToCurrencySale(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -82,22 +82,6 @@ class TestERP5BankingCashToCurrencySale(TestERP5BankingMixin, ERP5TypeTestCase):
""" """
return "ERP5BankingCashToCurrencySale" return "ERP5BankingCashToCurrencySale"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ( 'erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for cash sorting
)
def getCashToCurrencySaleModule(self): def getCashToCurrencySaleModule(self):
""" """
Return the Cash To Currency Sale Module Return the Cash To Currency Sale Module
......
...@@ -66,22 +66,6 @@ class TestERP5BankingCheckDeposit(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -66,22 +66,6 @@ class TestERP5BankingCheckDeposit(TestERP5BankingMixin, ERP5TypeTestCase):
""" """
return "ERP5BankingCheckDeposit" return "ERP5BankingCheckDeposit"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_check')
def afterSetUp(self): def afterSetUp(self):
""" """
Method called before the launch of the test to initialize some data Method called before the launch of the test to initialize some data
......
...@@ -65,22 +65,6 @@ class TestERP5BankingCheckPaymentMixin: ...@@ -65,22 +65,6 @@ class TestERP5BankingCheckPaymentMixin:
""" """
return "ERP5BankingCheckPayment" return "ERP5BankingCheckPayment"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_check')
def afterSetUp(self): def afterSetUp(self):
""" """
Method called before the launch of the test to initialize some data Method called before the launch of the test to initialize some data
......
...@@ -156,23 +156,6 @@ class TestERP5BankingCheckbookDelivery(TestERP5BankingCheckbookDeliveryMixin, ...@@ -156,23 +156,6 @@ class TestERP5BankingCheckbookDelivery(TestERP5BankingCheckbookDeliveryMixin,
""" """
return "ERP5BankingCheckbookDelivery" return "ERP5BankingCheckbookDelivery"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_check',
)
def stepCheckObjects(self, sequence=None, sequence_list=None, **kwd): def stepCheckObjects(self, sequence=None, sequence_list=None, **kwd):
""" """
Check that all the objects we created in afterSetUp or Check that all the objects we created in afterSetUp or
......
...@@ -71,23 +71,6 @@ class TestERP5BankingCheckbookMovement(TestERP5BankingCheckbookVaultTransferMixi ...@@ -71,23 +71,6 @@ class TestERP5BankingCheckbookMovement(TestERP5BankingCheckbookVaultTransferMixi
""" """
return "ERP5BankingCheckbookMovement" return "ERP5BankingCheckbookMovement"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_check',
)
def afterSetUp(self): def afterSetUp(self):
""" """
Method called before the launch of the test to initialize some data Method called before the launch of the test to initialize some data
......
...@@ -69,23 +69,6 @@ class TestERP5BankingCheckbookReception(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -69,23 +69,6 @@ class TestERP5BankingCheckbookReception(TestERP5BankingMixin, ERP5TypeTestCase):
""" """
return "ERP5BankingCheckbookReception" return "ERP5BankingCheckbookReception"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_check'
)
def afterSetUp(self): def afterSetUp(self):
""" """
Method called before the launch of the test to initialize some data Method called before the launch of the test to initialize some data
......
...@@ -136,23 +136,6 @@ class TestERP5BankingCheckbookUsualCashTransfer(TestERP5BankingCheckbookUsualCas ...@@ -136,23 +136,6 @@ class TestERP5BankingCheckbookUsualCashTransfer(TestERP5BankingCheckbookUsualCas
""" """
return "ERP5BankingCheckbookUsualCashTransfer" return "ERP5BankingCheckbookUsualCashTransfer"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_check',
)
def afterSetUp(self): def afterSetUp(self):
""" """
Method called before the launch of the test to initialize some data Method called before the launch of the test to initialize some data
......
...@@ -160,23 +160,6 @@ class TestERP5BankingCheckbookVaultTransfer(TestERP5BankingCheckbookVaultTransfe ...@@ -160,23 +160,6 @@ class TestERP5BankingCheckbookVaultTransfer(TestERP5BankingCheckbookVaultTransfe
""" """
return "ERP5BankingCheckbookVaultTransfer" return "ERP5BankingCheckbookVaultTransfer"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_check',
)
def afterSetUp(self): def afterSetUp(self):
""" """
Method called before the launch of the test to initialize some data Method called before the launch of the test to initialize some data
......
...@@ -61,22 +61,6 @@ class TestERP5BankingClassificationSurvey(TestERP5BankingMixin, ERP5TypeTestCase ...@@ -61,22 +61,6 @@ class TestERP5BankingClassificationSurvey(TestERP5BankingMixin, ERP5TypeTestCase
""" """
return "ERP5BankingClassificationSurvey" return "ERP5BankingClassificationSurvey"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ( 'erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for classification surveyg
)
def getClassificationSurveyModule(self): def getClassificationSurveyModule(self):
""" """
Return the Classification Survey Module Return the Classification Survey Module
......
...@@ -92,22 +92,6 @@ class TestERP5BankingCounterRendering(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -92,22 +92,6 @@ class TestERP5BankingCounterRendering(TestERP5BankingMixin, ERP5TypeTestCase):
""" """
return "ERP5BankingCounterRendering" return "ERP5BankingCounterRendering"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for counter rendering
)
def getCounterRenderingModule(self): def getCounterRenderingModule(self):
""" """
Return the Cash Transer Module Return the Cash Transer Module
......
...@@ -73,20 +73,6 @@ class TestERP5BankingCurrencyPurchase(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -73,20 +73,6 @@ class TestERP5BankingCurrencyPurchase(TestERP5BankingMixin, ERP5TypeTestCase):
""" """
return getattr(self.getPortal(), 'currency_purchase_module', None) return getattr(self.getPortal(), 'currency_purchase_module', None)
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_cash')
def afterSetUp(self): def afterSetUp(self):
""" """
Method called before the launch of the test to initialize some data Method called before the launch of the test to initialize some data
......
...@@ -72,21 +72,6 @@ class TestERP5BankingCurrencySale(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -72,21 +72,6 @@ class TestERP5BankingCurrencySale(TestERP5BankingMixin, ERP5TypeTestCase):
""" """
return getattr(self.getPortal(), 'currency_sale_module', None) return getattr(self.getPortal(), 'currency_sale_module', None)
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_cash')
def afterSetUp(self): def afterSetUp(self):
""" """
Method called before the launch of the test to initialize some data Method called before the launch of the test to initialize some data
......
...@@ -65,22 +65,6 @@ class TestERP5BankingDestructionSurvey(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -65,22 +65,6 @@ class TestERP5BankingDestructionSurvey(TestERP5BankingMixin, ERP5TypeTestCase):
""" """
return "ERP5BankingDestructionSurvey" return "ERP5BankingDestructionSurvey"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for monetary destruction
)
def getDestructionSurveyModule(self): def getDestructionSurveyModule(self):
""" """
Return the Cash Transer Module Return the Cash Transer Module
......
...@@ -71,22 +71,6 @@ class TestERP5BankingForeignCashReception(TestERP5BankingMixin, ERP5TypeTestCase ...@@ -71,22 +71,6 @@ class TestERP5BankingForeignCashReception(TestERP5BankingMixin, ERP5TypeTestCase
""" """
return "ERP5BankingForeignCashReception" return "ERP5BankingForeignCashReception"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_cash'
)
def getForeignCashReceptionModule(self): def getForeignCashReceptionModule(self):
""" """
Return the Cash Inventory Module Return the Cash Inventory Module
......
...@@ -60,22 +60,6 @@ class TestERP5BankingInternalMoneyDeposit(TestERP5BankingMixin, ERP5TypeTestCase ...@@ -60,22 +60,6 @@ class TestERP5BankingInternalMoneyDeposit(TestERP5BankingMixin, ERP5TypeTestCase
Return the title of the test Return the title of the test
""" """
return "ERP5BankingInternalMoneyDeposit" return "ERP5BankingInternalMoneyDeposit"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ( 'erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_internal_money_deposit contains all method for cash sorting
)
def getInternalMoneyDepositModule(self): def getInternalMoneyDepositModule(self):
""" """
......
...@@ -92,22 +92,6 @@ class TestERP5BankingMonetaryDestruction(TestERP5BankingMixin, ERP5TypeTestCase) ...@@ -92,22 +92,6 @@ class TestERP5BankingMonetaryDestruction(TestERP5BankingMixin, ERP5TypeTestCase)
""" """
return "ERP5BankingMonetaryDestruction" return "ERP5BankingMonetaryDestruction"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash'
)
def getMonetaryDestructionModule(self): def getMonetaryDestructionModule(self):
""" """
Return the Monetary Destruction Module Return the Monetary Destruction Module
......
...@@ -131,22 +131,6 @@ class TestERP5BankingMonetaryIssue(TestERP5BankingMonetaryReceptionMixin, TestER ...@@ -131,22 +131,6 @@ class TestERP5BankingMonetaryIssue(TestERP5BankingMonetaryReceptionMixin, TestER
""" """
return "ERP5BankingMonetaryIssue" return "ERP5BankingMonetaryIssue"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_cash'
)
def getMonetaryIssueModule(self): def getMonetaryIssueModule(self):
""" """
Return the Cash Inventory Module Return the Cash Inventory Module
......
...@@ -92,22 +92,6 @@ class TestERP5BankingMonetaryRecall(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -92,22 +92,6 @@ class TestERP5BankingMonetaryRecall(TestERP5BankingMixin, ERP5TypeTestCase):
""" """
return "ERP5BankingMonetaryRecall" return "ERP5BankingMonetaryRecall"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for monetary recall
)
def getMonetaryRecallModule(self): def getMonetaryRecallModule(self):
""" """
Return the Monetary Recall Module Return the Monetary Recall Module
......
...@@ -69,22 +69,6 @@ class TestERP5BankingMonetaryReception(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -69,22 +69,6 @@ class TestERP5BankingMonetaryReception(TestERP5BankingMixin, ERP5TypeTestCase):
""" """
return "ERP5BankingMonetaryReception" return "ERP5BankingMonetaryReception"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_cash'
)
def getMonetaryReceptionModule(self): def getMonetaryReceptionModule(self):
""" """
Return the Cash Inventory Module Return the Cash Inventory Module
......
...@@ -62,22 +62,6 @@ class TestERP5BankingMonetarySurvey(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -62,22 +62,6 @@ class TestERP5BankingMonetarySurvey(TestERP5BankingMixin, ERP5TypeTestCase):
""" """
return "ERP5BankingMonetarySurvey" return "ERP5BankingMonetarySurvey"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for cash transfer
)
def getMonetarySurveyModule(self): def getMonetarySurveyModule(self):
""" """
Return the Cash Transer Module Return the Cash Transer Module
......
...@@ -64,22 +64,6 @@ class TestERP5BankingMoneyDepositMixin: ...@@ -64,22 +64,6 @@ class TestERP5BankingMoneyDepositMixin:
Return the title of the test Return the title of the test
""" """
return "ERP5BankingMoneyDeposit" return "ERP5BankingMoneyDeposit"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ( 'erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory' #, 'currency_exchange_patch'
, 'erp5_banking_cash' # erp5_banking_money_deposit contains all method for cash sorting
)
def getMoneyDepositModule(self): def getMoneyDepositModule(self):
""" """
......
...@@ -92,22 +92,6 @@ class TestERP5BankingMoneyDepositRendering(TestERP5BankingMixin, ERP5TypeTestCas ...@@ -92,22 +92,6 @@ class TestERP5BankingMoneyDepositRendering(TestERP5BankingMixin, ERP5TypeTestCas
""" """
return "ERP5BankingMoneyDepositRendering" return "ERP5BankingMoneyDepositRendering"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for money deposit rendering
)
def getMoneyDepositRenderingModule(self): def getMoneyDepositRenderingModule(self):
""" """
Return the Cash Transer Module Return the Cash Transer Module
......
...@@ -89,22 +89,6 @@ class TestERP5BankingMoneyDepositTransfer(TestERP5BankingMixin, ERP5TypeTestCase ...@@ -89,22 +89,6 @@ class TestERP5BankingMoneyDepositTransfer(TestERP5BankingMixin, ERP5TypeTestCase
""" """
return "ERP5BankingMoneyDepositTransfer" return "ERP5BankingMoneyDepositTransfer"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash'
)
def getMoneyDepositTransferModule(self): def getMoneyDepositTransferModule(self):
""" """
Return the Cash Transer Module Return the Cash Transer Module
......
...@@ -60,21 +60,6 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -60,21 +60,6 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase):
""" """
return "ERP5BankingMutilatedBanknote" return "ERP5BankingMutilatedBanknote"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core'
, 'erp5_banking_inventory'
, 'erp5_banking_cash'
)
def getMutilatedBanknoteModule(self): def getMutilatedBanknoteModule(self):
""" """
Return the Cash Transer Module Return the Cash Transer Module
......
...@@ -73,22 +73,6 @@ class TestERP5BankingStopPayment( TestERP5BankingCheckbookDeliveryMixin, ...@@ -73,22 +73,6 @@ class TestERP5BankingStopPayment( TestERP5BankingCheckbookDeliveryMixin,
""" """
return "ERP5BankingStopPayment" return "ERP5BankingStopPayment"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_check',
)
def getStopPaymentModule(self): def getStopPaymentModule(self):
""" """
Return the Stop Payment Module Return the Stop Payment Module
......
...@@ -50,27 +50,6 @@ os.environ['EVENT_LOG_SEVERITY'] = '-300' ...@@ -50,27 +50,6 @@ os.environ['EVENT_LOG_SEVERITY'] = '-300'
if __name__ == '__main__': if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py')) execfile(os.path.join(sys.path[0], 'framework.py'))
#class TestERP5BankingTravelerCheckPurchaseMixin:
#
# def createTravelerCheckSale(self, sequence=None, sequence_list=None, **kwd):
# """
# Create a traveler check sale
# """
# # We will do the transfer ot two items.
# self.traveler_check_sale = self.traveler_check_sale_module.newContent(
# id='traveler_check_sale', portal_type='Traveler Check Sale',
# source_value=self.traveler_check_source, destination_value=None,
# destination_payment_value=self.bank_account_1,
# resource_value=self.currency_1,
# start_date=self.date)
# # check its portal type
# self.assertEqual(self.traveler_check_sale.getPortalType(), 'Traveler Check Sale')
# # check source
# self.assertEqual(self.traveler_check_sale.getBaobabSource(),
# 'site/testsite/paris/surface/banque_interne/guichet_1/encaisse_des_billets_et_monnaies')
# # check destination
# self.assertEqual(self.traveler_check_sale.getBaobabDestination(), None)
class TestERP5BankingTravelerCheckPurchase(TestERP5BankingCheckbookUsualCashTransferMixin, class TestERP5BankingTravelerCheckPurchase(TestERP5BankingCheckbookUsualCashTransferMixin,
TestERP5BankingTravelerCheckSaleMixin, TestERP5BankingTravelerCheckSaleMixin,
TestERP5BankingMixin, ERP5TypeTestCase): TestERP5BankingMixin, ERP5TypeTestCase):
...@@ -94,22 +73,6 @@ class TestERP5BankingTravelerCheckPurchase(TestERP5BankingCheckbookUsualCashTran ...@@ -94,22 +73,6 @@ class TestERP5BankingTravelerCheckPurchase(TestERP5BankingCheckbookUsualCashTran
""" """
return "ERP5BankingTravelerCheckPurchase" return "ERP5BankingTravelerCheckPurchase"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_check',
)
def getTravelerCheckPurchaseModule(self): def getTravelerCheckPurchaseModule(self):
""" """
Return the Traveler Check Purchase Module Return the Traveler Check Purchase Module
......
...@@ -233,24 +233,6 @@ class TestERP5BankingTravelerCheckSale(TestERP5BankingCheckbookUsualCashTransfer ...@@ -233,24 +233,6 @@ class TestERP5BankingTravelerCheckSale(TestERP5BankingCheckbookUsualCashTransfer
""" """
return "ERP5BankingTravelerCheckSale" return "ERP5BankingTravelerCheckSale"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_check',
)
def stepCheckObjects(self, sequence=None, sequence_list=None, **kwd): def stepCheckObjects(self, sequence=None, sequence_list=None, **kwd):
""" """
Check that all the objects we created in afterSetUp or Check that all the objects we created in afterSetUp or
......
...@@ -90,22 +90,6 @@ class TestERP5BankingUsualCashIncident(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -90,22 +90,6 @@ class TestERP5BankingUsualCashIncident(TestERP5BankingMixin, ERP5TypeTestCase):
""" """
return "ERP5BankingUsualCashIncident" return "ERP5BankingUsualCashIncident"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for cash transfer
)
def getUsualCashIncidentModule(self): def getUsualCashIncidentModule(self):
""" """
Return the Cash Transer Module Return the Cash Transer Module
......
...@@ -104,22 +104,6 @@ class TestERP5BankingUsualCashRendering(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -104,22 +104,6 @@ class TestERP5BankingUsualCashRendering(TestERP5BankingMixin, ERP5TypeTestCase):
""" """
return "ERP5BankingUsualCashRendering" return "ERP5BankingUsualCashRendering"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash'
)
def getUsualCashRenderingModule(self): def getUsualCashRenderingModule(self):
""" """
Return the Vault Transer Module Return the Vault Transer Module
......
...@@ -92,22 +92,6 @@ class TestERP5BankingUsualCashTransfer(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -92,22 +92,6 @@ class TestERP5BankingUsualCashTransfer(TestERP5BankingMixin, ERP5TypeTestCase):
""" """
return "ERP5BankingUsualCashTransfer" return "ERP5BankingUsualCashTransfer"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for cash transfer
)
def getUsualCashTransferModule(self): def getUsualCashTransferModule(self):
""" """
Return the Cash Transer Module Return the Cash Transer Module
......
...@@ -104,22 +104,6 @@ class TestERP5BankingVaultTransfer(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -104,22 +104,6 @@ class TestERP5BankingVaultTransfer(TestERP5BankingMixin, ERP5TypeTestCase):
""" """
return "ERP5BankingVaultTransfer" return "ERP5BankingVaultTransfer"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash'
)
def getVaultTransferModule(self): def getVaultTransferModule(self):
""" """
Return the Vault Transer Module Return the Vault Transer Module
......
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