Commit 66a171d7 authored by Romain Courteaud's avatar Romain Courteaud

slapos_cloud: test: currency is required to create a Virtual Master

parent 3ce730a0
...@@ -175,7 +175,6 @@ class SlapOSTestCaseMixin(testSlapOSMixin): ...@@ -175,7 +175,6 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
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 organisation is None
assert currency is None
if person is None: if person is None:
project = self.portal.project_module.newContent( project = self.portal.project_module.newContent(
portal_type='Project', portal_type='Project',
...@@ -184,11 +183,16 @@ class SlapOSTestCaseMixin(testSlapOSMixin): ...@@ -184,11 +183,16 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
project.validate() project.validate()
return project return project
currency_relative_url = None
if currency is not None:
currency_relative_url = currency.getRelativeUrl()
# Action to submit project subscription # Action to submit project subscription
return person.Person_addVirtualMaster( return person.Person_addVirtualMaster(
'project-%s' % self.generateNewId(), 'project-%s' % self.generateNewId(),
is_accountable, is_accountable,
is_accountable, is_accountable,
currency_relative_url,
batch=1).getRelativeUrl() batch=1).getRelativeUrl()
""" """
service = self.portal.restrictedTraverse('service_module/slapos_virtual_master_subscription') service = self.portal.restrictedTraverse('service_module/slapos_virtual_master_subscription')
......
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