Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Arnaud Véron
slapos.core
Commits
8535452e
Commit
8535452e
authored
Nov 19, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check children rule generation.
parent
ac0b28fc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingDefaultInvoicingRule.py
...tTemplateItem/testSlapOSAccountingDefaultInvoicingRule.py
+6
-0
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingDefaultSubscriptionItemRule.py
...teItem/testSlapOSAccountingDefaultSubscriptionItemRule.py
+7
-4
master/bt5/slapos_accounting/bt/revision
master/bt5/slapos_accounting/bt/revision
+1
-1
No files found.
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingDefaultInvoicingRule.py
View file @
8535452e
...
@@ -123,6 +123,12 @@ class TestDefaultInvoicingRule(testSlapOSMixin):
...
@@ -123,6 +123,12 @@ class TestDefaultInvoicingRule(testSlapOSMixin):
self
.
assertEqual
([
'business_process_module/slapos_sale_business_p'
self
.
assertEqual
([
'business_process_module/slapos_sale_business_p'
'rocess/invoice_path'
,
'business_process_module/slapos_sale_b'
'rocess/invoice_path'
,
'business_process_module/slapos_sale_b'
'usiness_process/invoice'
],
simulation_movement
.
getCausalityList
())
'usiness_process/invoice'
],
simulation_movement
.
getCausalityList
())
# check children rules' type
child_applied_rule_type_list
=
[
q
.
getSpecialiseReference
()
for
q
in
\
simulation_movement
.
contentValues
(
portal_type
=
'Applied Rule'
)]
self
.
assertSameSet
(
[
'default_invoice_transaction_rule'
,
'default_trade_model_rule'
],
child_applied_rule_type_list
)
finally
:
finally
:
SimulationMovement
.
getSimulationState
=
SimulationMovement
\
SimulationMovement
.
getSimulationState
=
SimulationMovement
\
.
original_getSimulationState
.
original_getSimulationState
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingDefaultSubscriptionItemRule.py
View file @
8535452e
...
@@ -117,7 +117,7 @@ class TestHostingSubscriptionSimulation(testSlapOSMixin):
...
@@ -117,7 +117,7 @@ class TestHostingSubscriptionSimulation(testSlapOSMixin):
applied_rule_list_level_2
=
simulation_movement
.
contentValues
(
applied_rule_list_level_2
=
simulation_movement
.
contentValues
(
portal_type
=
'Applied Rule'
)
portal_type
=
'Applied Rule'
)
self
.
assertEqual
(
0
,
len
(
applied_rule_list_level_2
))
self
.
assertEqual
(
1
,
len
(
applied_rule_list_level_2
))
# check next simulation movement
# check next simulation movement
idx
+=
1
idx
+=
1
...
@@ -216,9 +216,12 @@ class TestHostingSubscriptionSimulation(testSlapOSMixin):
...
@@ -216,9 +216,12 @@ class TestHostingSubscriptionSimulation(testSlapOSMixin):
self
.
assertEqual
(
'planned'
,
simulation_movement
.
getSimulationState
())
self
.
assertEqual
(
'planned'
,
simulation_movement
.
getSimulationState
())
self
.
assertEqual
(
None
,
simulation_movement
.
getDelivery
())
self
.
assertEqual
(
None
,
simulation_movement
.
getDelivery
())
applied_rule_list_level_2
=
simulation_movement
.
contentValues
(
# check children rules' type
portal_type
=
'Applied Rule'
)
child_applied_rule_type_list
=
[
q
.
getSpecialiseReference
()
for
q
in
\
self
.
assertEqual
(
0
,
len
(
applied_rule_list_level_2
))
simulation_movement
.
contentValues
(
portal_type
=
'Applied Rule'
)]
self
.
assertSameSet
(
[
'default_invoicing_rule'
],
child_applied_rule_type_list
)
# check next simulation movement
# check next simulation movement
idx
+=
1
idx
+=
1
def
isFrozen
(
*
args
,
**
kwargs
):
def
isFrozen
(
*
args
,
**
kwargs
):
...
...
master/bt5/slapos_accounting/bt/revision
View file @
8535452e
67
68
\ No newline at end of file
\ No newline at end of file
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