Commit 4362ea59 by Klaus Wölfel

erp5_configurator_standard: Add test for German configuration case

1 parent 03c751d4
......@@ -134,6 +134,17 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
configuration_price_currency = 'EUR;0.01;Euro',
organisation_default_address_city='LILLE',
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):
""" Check if configuration key was created fine """
......@@ -1569,6 +1580,13 @@ class TestStandardConfiguratorWorkflow(StandardConfigurationMixin):
sequence_string = self.DEFAULT_SEQUENCE_LIST % dict(country='France')
sequence_list.addSequenceString(sequence_string)
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):
""" Test the standard workflow with brazilian configuration """
......
......@@ -377,6 +377,14 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase):
accounting_transaction_gap='gap/fr/pcg',
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):
""" Check the Brazilian accounting configuration item """
self._stepCheckAccountingConfigurationItemList(
......@@ -507,6 +515,12 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase):
business_configuration=sequence.get('business_configuration'),
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):
""" Check if the instance is configured with Brazilian business templates """
self._stepCheckInstanceIsConfigured(
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!