Commit 4362ea59 authored by Klaus Wölfel's avatar Klaus Wölfel

erp5_configurator_standard: Add test for German configuration case

parent 03c751d4
...@@ -135,6 +135,17 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin): ...@@ -135,6 +135,17 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
organisation_default_address_city='LILLE', organisation_default_address_city='LILLE',
organisation_default_address_region='europe/western_europe/france') organisation_default_address_region='europe/western_europe/france')
def stepSetGermanyCase(self, sequence=None, sequence_list=None, **kw):
""" Check if configuration key was created fine """
sequence.edit(configuration_currency_reference='EUR',
configuration_gap = 'gap/de/skr04',
configuration_accounting_plan='de',
configuration_currency_title = 'Euro',
configuration_lang = 'erp5_l10n_de',
configuration_price_currency = 'EUR;0.01;Euro',
organisation_default_address_city='Berlin',
organisation_default_address_region='europe/western_europe/germany')
def stepSetBrazilCase(self, sequence=None, sequence_list=None, **kw): def stepSetBrazilCase(self, sequence=None, sequence_list=None, **kw):
""" Check if configuration key was created fine """ """ Check if configuration key was created fine """
sequence.edit(configuration_currency_reference='BRL', sequence.edit(configuration_currency_reference='BRL',
...@@ -1570,6 +1581,13 @@ class TestStandardConfiguratorWorkflow(StandardConfigurationMixin): ...@@ -1570,6 +1581,13 @@ class TestStandardConfiguratorWorkflow(StandardConfigurationMixin):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def test_standard_workflow_germany(self):
""" Test the standard workflow with german configuration"""
sequence_list = SequenceList()
sequence_string = self.DEFAULT_SEQUENCE_LIST % dict(country='Germany')
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_standard_workflow_brazil(self): def test_standard_workflow_brazil(self):
""" Test the standard workflow with brazilian configuration """ """ Test the standard workflow with brazilian configuration """
sequence_list = SequenceList() sequence_list = SequenceList()
......
...@@ -377,6 +377,14 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase): ...@@ -377,6 +377,14 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase):
accounting_transaction_gap='gap/fr/pcg', accounting_transaction_gap='gap/fr/pcg',
gap='fr/pcg/1/10/101') gap='fr/pcg/1/10/101')
def stepCheckAccountingConfigurationItemListGermany(self, sequence=None, sequence_list=None, **kw):
""" Check the German accounting configuration item """
self._stepCheckAccountingConfigurationItemList(
business_configuration=sequence.get("business_configuration"),
bt5_id='erp5_accounting_l10n_de_skr04',
accounting_transaction_gap='gap/de/skr04',
gap='de/skr04/3/1/2/1/1')
def stepCheckAccountingConfigurationItemListBrazil(self, sequence=None, sequence_list=None, **kw): def stepCheckAccountingConfigurationItemListBrazil(self, sequence=None, sequence_list=None, **kw):
""" Check the Brazilian accounting configuration item """ """ Check the Brazilian accounting configuration item """
self._stepCheckAccountingConfigurationItemList( self._stepCheckAccountingConfigurationItemList(
...@@ -507,6 +515,12 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase): ...@@ -507,6 +515,12 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase):
business_configuration=sequence.get('business_configuration'), business_configuration=sequence.get('business_configuration'),
bt5_tuple=('erp5_accounting_l10n_fr', 'erp5_l10n_fr',)) bt5_tuple=('erp5_accounting_l10n_fr', 'erp5_l10n_fr',))
def stepCheckInstanceIsConfiguredGermany(self, sequence=None, sequence_list=None, **kw):
""" Check if the instance is configured with German business templates """
self._stepCheckInstanceIsConfigured(
business_configuration=sequence.get('business_configuration'),
bt5_tuple=('erp5_accounting_l10n_de_skr04', 'erp5_l10n_de',))
def stepCheckInstanceIsConfiguredBrazil(self, sequence=None, sequence_list=None, **kw): def stepCheckInstanceIsConfiguredBrazil(self, sequence=None, sequence_list=None, **kw):
""" Check if the instance is configured with Brazilian business templates """ """ Check if the instance is configured with Brazilian business templates """
self._stepCheckInstanceIsConfigured( self._stepCheckInstanceIsConfigured(
......
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