Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
142
Merge Requests
142
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
862b3561
Commit
862b3561
authored
Feb 07, 2022
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip business config test
parent
2af1d610
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
bt5/erp5_configurator_standard/TestTemplateItem/portal_components/test.erp5.testStandardConfigurationWorkflow.py
...components/test.erp5.testStandardConfigurationWorkflow.py
+13
-2
product/ERP5Type/Constraint/PropertyTypeValidity.py
product/ERP5Type/Constraint/PropertyTypeValidity.py
+7
-0
No files found.
bt5/erp5_configurator_standard/TestTemplateItem/portal_components/test.erp5.testStandardConfigurationWorkflow.py
View file @
862b3561
...
...
@@ -137,6 +137,15 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
stepPortalContributionsTool
stepConfiguredPropertySheets
"""
business_configuration
=
None
def
beforeTearDown
(
self
):
self
.
abort
()
if
self
.
business_configuration
is
not
None
:
self
.
business_configuration
.
getParentValue
().
manage_delObjects
(
[
self
.
business_configuration
.
getId
()])
super
(
StandardConfigurationMixin
,
self
).
beforeTearDown
()
def
stepSetFranceCase
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
""" Check if configuration key was created fine """
sequence
.
edit
(
configuration_currency_reference
=
'EUR'
,
...
...
@@ -310,11 +319,11 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
def
stepCreateBusinessConfiguration
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
""" Create one Business Configuration """
module
=
self
.
portal
.
business_configuration_module
business_configuration
=
module
.
newContent
(
self
.
business_configuration
=
module
.
newContent
(
portal_type
=
"Business Configuration"
,
title
=
self
.
getTitle
())
next_dict
=
{}
sequence
.
edit
(
business_configuration
=
business_configuration
,
sequence
.
edit
(
business_configuration
=
self
.
business_configuration
,
next_dict
=
next_dict
)
def
stepCheckValidCurrencyList
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
...
...
@@ -2050,6 +2059,7 @@ class TestConsultingConfiguratorWorkflow(StandardConfigurationMixin):
def
beforeTearDown
(
self
):
os
.
remove
(
self
.
categories_file_path
)
os
.
remove
(
self
.
roles_file_path
)
super
(
TestConsultingConfiguratorWorkflow
,
self
).
beforeTearDown
()
def
stepCheckConfigureCategoriesForm
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
""" Check if Confire Categories step was showed """
...
...
@@ -2205,6 +2215,7 @@ class TestConsultingConfiguratorWorkflow(StandardConfigurationMixin):
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
class
TestStandardConfiguratorWorkflow
(
StandardConfigurationMixin
):
"""
Test Live Standard Configuration Workflow.
...
...
product/ERP5Type/Constraint/PropertyTypeValidity.py
View file @
862b3561
...
...
@@ -83,6 +83,13 @@ class PropertyTypeValidity(Constraint):
message_wrong_property_dropped
=
"Wrong property ${property_id} dropped from object dict."
def
_checkConsistency
(
self
,
obj
,
fixit
=
0
):
try
:
return
self
.
x_checkConsistency
(
obj
,
fixit
=
fixit
)
except
Exception
as
e
:
import
pdb
;
pdb
.
set_trace
()
raise
def
x_checkConsistency
(
self
,
obj
,
fixit
=
0
):
"""Check the object's consistency.
"""
error_list
=
[]
...
...
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