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
139
Merge Requests
139
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
cb4a910a
Commit
cb4a910a
authored
Oct 23, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testBPMCore: create more realistic simulation trees
Applied rules must have a rule as specialise
parent
f5754f00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
bt5/erp5_simplified_invoicing/TestTemplateItem/portal_components/test.erp5.testBPMCore.py
...stTemplateItem/portal_components/test.erp5.testBPMCore.py
+10
-3
No files found.
bt5/erp5_simplified_invoicing/TestTemplateItem/portal_components/test.erp5.testBPMCore.py
View file @
cb4a910a
...
...
@@ -291,7 +291,10 @@ class TestBPMDummyDeliveryMovementMixin(TestBPMMixin):
# first level rule with simulation movement
self
.
applied_rule
=
self
.
portal
.
portal_simulation
.
newContent
(
portal_type
=
'Applied Rule'
,
causality_value
=
order
)
portal_type
=
'Applied Rule'
,
causality_value
=
order
,
specialise_value
=
self
.
portal
.
portal_rules
.
new_order_root_simulation_rule
,
)
def
setTestClassProperty
(
prefix
,
property_name
,
document
):
if
prefix
:
...
...
@@ -316,7 +319,9 @@ class TestBPMDummyDeliveryMovementMixin(TestBPMMixin):
# second level rule with simulation movement
document
=
setTestClassProperty
(
prefix
,
'delivery_rule'
,
document
.
newContent
(
portal_type
=
'Applied Rule'
))
portal_type
=
'Applied Rule'
,
specialise_value
=
self
.
portal
.
portal_rules
.
new_delivery_simulation_rule
,
))
document
=
setTestClassProperty
(
prefix
,
'delivery_simulation_movement'
,
document
.
newContent
(
portal_type
=
'Simulation Movement'
,
...
...
@@ -329,7 +334,9 @@ class TestBPMDummyDeliveryMovementMixin(TestBPMMixin):
# third level rule with simulation movement
document
=
setTestClassProperty
(
prefix
,
'invoicing_rule'
,
document
.
newContent
(
portal_type
=
'Applied Rule'
))
portal_type
=
'Applied Rule'
,
specialise_value
=
self
.
portal
.
portal_rules
.
new_invoice_simulation_rule
,
))
document
=
setTestClassProperty
(
prefix
,
'invoicing_simulation_movement'
,
document
.
newContent
(
...
...
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