Commit 0ed5b6f9 authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: link hosting subscription to project

parent b0e31219
...@@ -441,6 +441,7 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin): ...@@ -441,6 +441,7 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin):
# 2 credential request # 2 credential request
# 1 open order # 1 open order
# 1 hosting subscription
# 2 accounting transaction # 2 accounting transaction
# 1 packing list # 1 packing list
# 7 simulation mvt # 7 simulation mvt
...@@ -452,7 +453,7 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin): ...@@ -452,7 +453,7 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin):
# 3 allocation supply / line / cell # 3 allocation supply / line / cell
related_object_list = project.Base_getRelatedObjectList(**{'category.category_strict_membership': 1}) related_object_list = project.Base_getRelatedObjectList(**{'category.category_strict_membership': 1})
assert len(related_object_list) == 29, [x.getRelativeUrl() for x in related_object_list] assert len(related_object_list) == 30, [x.getRelativeUrl() for x in related_object_list]
self.stepcheckERP5Consistency() self.stepcheckERP5Consistency()
...@@ -655,6 +656,7 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin): ...@@ -655,6 +656,7 @@ class TestSlapOSVirtualMasterScenario(DefaultScenarioMixin):
portal_type="Hosting Subscription", portal_type="Hosting Subscription",
# XXX hardcoded # XXX hardcoded
ledger="automated", ledger="automated",
follow_up_value=project,
) )
hosting_subscription.validate() hosting_subscription.validate()
start_date = hosting_subscription.HostingSubscription_calculateSubscriptionStartDate() start_date = hosting_subscription.HostingSubscription_calculateSubscriptionStartDate()
......
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