Commit 3349598c authored by Rafael Monnerat's avatar Rafael Monnerat

squash! slapos_erp5: Assignment

parent 996a0dab
Pipeline #36549 passed with stage
in 0 seconds
......@@ -385,18 +385,18 @@ class TestAllocationSupply(TestSlapOSGroupRoleSecurityMixin):
self.assertRoles(supply, '%s_F-PRODMAN' % project.getReference(), ['Assignor'])
self.assertRoles(supply, '%s_F-PRODAGNT' % project.getReference(), ['Assignee'])
class TestAssignment(TestSlapOSGroupRoleSecurityMixin):
def test_Assignment_Sale(self):
def test_Assignment_Sale_Accountant(self):
assignment = self.portal.person_module.newContent(
portal_type='Person').newContent(portal_type='Assignment')
self.assertSecurityGroup(assignment,
[self.user_id, 'F-SALEAGT', 'F-SALEMAN'], False)
[self.user_id, 'F-SALEAGT', 'F-SALEMAN', 'F-ACCMAN', 'F-ACCAGT'], False)
self.assertRoles(assignment, 'F-ACCMAN', ['Auditor'])
self.assertRoles(assignment, 'F-ACCAGT', ['Auditor'])
self.assertRoles(assignment, self.user_id, ['Owner'])
self.assertRoles(assignment, 'F-SALEMAN', ['Assignor'])
self.assertRoles(assignment, 'F-SALEAGT', ['Assignee'])
class TestComputeNodeModule(TestSlapOSGroupRoleSecurityMixin):
def test_ComputeNodeModule(self):
module = self.portal.compute_node_module
......
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