Commit 35666cd1 authored by Romain Courteaud's avatar Romain Courteaud

slapos_cloud: test: keep compatibility with previous addProject

parent da20dab7
......@@ -174,6 +174,17 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
).open()
def addProject(self, organisation=None, currency=None, person=None, is_accountable=False):
assert organisation is None
assert currency is None
assert not is_accountable
if person is None:
project = self.portal.project_module.newContent(
portal_type='Project',
title='project-%s' % self.generateNewId()
)
project.validate()
return project
# Action to submit project subscription
service = self.portal.restrictedTraverse('service_module/slapos_virtual_master_subscription')
subscription_request = service.Resource_createSubscriptionRequest(person, None, None)
......
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