Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
Commits
4362ea59
Commit
4362ea59
authored
Sep 23, 2014
by
Klaus Wölfel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_configurator_standard: Add test for German configuration case
parent
03c751d4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
bt5/erp5_configurator_standard/TestTemplateItem/portal_components/test.erp5.testStandardConfigurationWorkflow.py
...components/test.erp5.testStandardConfigurationWorkflow.py
+18
-0
product/ERP5Configurator/tests/ConfiguratorTestMixin.py
product/ERP5Configurator/tests/ConfiguratorTestMixin.py
+14
-0
No files found.
bt5/erp5_configurator_standard/TestTemplateItem/portal_components/test.erp5.testStandardConfigurationWorkflow.py
View file @
4362ea59
...
@@ -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
()
...
...
product/ERP5Configurator/tests/ConfiguratorTestMixin.py
View file @
4362ea59
...
@@ -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
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment