Commit 0296c6d4 authored by Romain Courteaud's avatar Romain Courteaud

slapos_accounting: testSlapOSAccountingInteractionWorkflow: a project is...

slapos_accounting: testSlapOSAccountingInteractionWorkflow: a project is required on the Instance Tree
parent 025a9429
......@@ -161,10 +161,12 @@ portal_workflow.doActionFor(context, action='edit_action', comment='Visited by D
def test_InstanceTree_changePromise(self):
new_id = self.generateNewId()
project = self.addProject()
subscription = self.portal.instance_tree_module.newContent(
portal_type='Instance Tree',
title="Subscription %s" % new_id,
reference="TESTSUB-%s" % new_id,
follow_up_value=project
)
subscription.validate()
......@@ -186,10 +188,12 @@ portal_workflow.doActionFor(context, action='edit_action', comment='Visited by D
def test_InstanceTree_changePromiseInDivergedState(self):
new_id = self.generateNewId()
project = self.addProject()
subscription = self.portal.instance_tree_module.newContent(
portal_type='Instance Tree',
title="Subscription %s" % new_id,
reference="TESTSUB-%s" % new_id,
follow_up_value=project
)
subscription.validate()
......
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