Commit 580e0116 authored by Romain Courteaud's avatar Romain Courteaud

slapos_accounting: testSlapOSAccountingAlarm: only ledger/automated movement are built

parent 992ce455
......@@ -691,6 +691,7 @@ class TestSlapOSTriggerBuildAlarm(SlapOSTestCaseMixin):
portal_type='Applied Rule')
simulation_movement = applied_rule.newContent(
portal_type='Simulation Movement',
ledger='automated',
title='Not visited by SimulationMovement_buildSlapOS')
self.tic()
......@@ -710,6 +711,7 @@ class TestSlapOSTriggerBuildAlarm(SlapOSTestCaseMixin):
portal_type='Applied Rule')
simulation_movement = applied_rule.newContent(
portal_type='Simulation Movement',
ledger='automated',
delivery=delivery_line.getRelativeUrl(),
title='Shall be visited by SimulationMovement_buildSlapOS')
self.tic()
......@@ -736,11 +738,13 @@ class TestSlapOSTriggerBuildAlarm(SlapOSTestCaseMixin):
portal_type='Applied Rule')
simulation_movement = root_applied_rule.newContent(
causality=root_business_link.getRelativeUrl(),
ledger='automated',
portal_type='Simulation Movement')
applied_rule = simulation_movement.newContent(portal_type='Applied Rule')
lower_simulation_movement = applied_rule.newContent(
causality=business_link.getRelativeUrl(),
ledger='automated',
portal_type='Simulation Movement')
try:
......@@ -822,6 +826,7 @@ class TestSlapOSTriggerBuildAlarm(SlapOSTestCaseMixin):
portal_type='Applied Rule')
simulation_movement = root_applied_rule.newContent(
causality=root_business_link.getRelativeUrl(),
ledger='automated',
delivery=delivery_line.getRelativeUrl(),
portal_type='Simulation Movement')
......@@ -829,6 +834,7 @@ class TestSlapOSTriggerBuildAlarm(SlapOSTestCaseMixin):
lower_simulation_movement = applied_rule.newContent(
causality=business_link.getRelativeUrl(),
delivery=delivery_line.getRelativeUrl(),
ledger='automated',
portal_type='Simulation Movement')
try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment