Commit 7254fc9a authored by Romain Courteaud's avatar Romain Courteaud

slapos_cloud: test: keep compatibility with previous addProject

parent 0b9f9415
...@@ -174,6 +174,17 @@ class SlapOSTestCaseMixin(testSlapOSMixin): ...@@ -174,6 +174,17 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
).open() ).open()
def addProject(self, organisation=None, currency=None, person=None, is_accountable=False): 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 # Action to submit project subscription
service = self.portal.restrictedTraverse('service_module/slapos_virtual_master_subscription') service = self.portal.restrictedTraverse('service_module/slapos_virtual_master_subscription')
subscription_request = service.Resource_createSubscriptionRequest(person, None, None) 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