Commit 1dd6b765 authored by Romain Courteaud's avatar Romain Courteaud

slapos_cloud:

* test: new parameter
* test: keep compatibility with previous addProject
parent 4555a1d6
......@@ -174,9 +174,20 @@ 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)
subscription_request = service.Resource_createSubscriptionRequest(person, None, None)
self.tic()
self.logout()
......
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