Commit 825a7b46 authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: set the aggregate value on the Open Order Sale

parent 2aacac4f
......@@ -365,17 +365,8 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin):
resource_vcl.sort()
open_order_line = open_sale_order.newContent(
portal_type="Open Sale Order Line",
#quantity=10,
#price=2,
resource_value=software_product,
aggregate_value=[
hosting_subscription,
instance_tree
],
variation_category_list=resource_vcl
# XXX constraint
#software_type_value=software_type,
#software_release_value=software_release,
)
......@@ -392,7 +383,11 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin):
price=3,
quantity=4,
predicate_category_list=cell_key,
variation_category_list=cell_key
variation_category_list=cell_key,
aggregate_value=[
hosting_subscription,
instance_tree
],
)
open_sale_order.order()
......@@ -435,9 +430,10 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin):
# 1 software product
# acquisition...
# 1 open order line
# 1 open order cell
related_object_list = project.Base_getRelatedObjectList(**{'category.category_strict_membership': 1})
assert len(related_object_list) == 14, [x.getRelativeUrl() for x in related_object_list]
assert len(related_object_list) == 15, [x.getRelativeUrl() for x in related_object_list]
self.stepcheckERP5Consistency()
......
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