Commit b67feeb4 authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: switch admin to production manager in tests

parent 3685e30d
...@@ -19,11 +19,11 @@ class TestSlapOSDefaultScenario(DefaultScenarioMixin): ...@@ -19,11 +19,11 @@ class TestSlapOSDefaultScenario(DefaultScenarioMixin):
group='company' group='company'
).open() ).open()
""" """
def addProjectComputeNodeManagerAssignment(self, person, project): def addProjectProductionManagerAssignment(self, person, project):
person.newContent( person.newContent(
portal_type='Assignment', portal_type='Assignment',
destination_project_value=project, destination_project_value=project,
function='computer/manager' function='production/manager'
).open() ).open()
def addProjectCustomerAssignment(self, person, project): def addProjectCustomerAssignment(self, person, project):
...@@ -60,7 +60,7 @@ class TestSlapOSDefaultScenario(DefaultScenarioMixin): ...@@ -60,7 +60,7 @@ class TestSlapOSDefaultScenario(DefaultScenarioMixin):
# first slapos administrator assignment can only be created by # first slapos administrator assignment can only be created by
# the erp5 manager # the erp5 manager
self.addProjectComputeNodeManagerAssignment(owner_person, project) self.addProjectProductionManagerAssignment(owner_person, project)
self.tic() self.tic()
# hooray, now it is time to create compute_nodes # hooray, now it is time to create compute_nodes
......
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