Commit 0ab966e6 authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: test: fixup

parent 5e904c6e
......@@ -184,10 +184,10 @@ class TestPaymentTransaction_getSecurityCategoryFromUser(TestSlapOSCoreMixin):
self.portal.PaymentTransaction_getSecurityCategoryFromUser([], None, payment, None))
shadow_user_id = 'SHADOW-%s' % person.getUserId()
self.assertEqual({'Auditor': [shadow_user_id]},
self.assertEqual({'Assignee': [shadow_user_id]},
self.portal.PaymentTransaction_getSecurityCategoryFromUser(["destination_section"], None, payment, None))
self.assertEqual({'Auditor': [shadow_user_id]},
self.assertEqual({'Assignee': [shadow_user_id]},
self.portal.PaymentTransaction_getSecurityCategoryFromUser(["couscous", "destination_section"], None, payment, None))
class TestPayzenEvent_getSecurityCategoryFromUserr(TestSlapOSCoreMixin):
......
......@@ -149,7 +149,7 @@ class TestAccountingTransactionModule(TestSlapOSGroupRoleSecurityMixin):
['F-ACCOUNTING*', 'F-PRODUCTION*', module.Base_getOwnerId(),
'R-SHADOW-PERSON', 'F-CUSTOMER'], True)
self.assertRoles(module, 'F-ACCOUNTING*', ['Auditor', 'Author'])
self.assertRoles(module, 'R-SHADOW-PERSON', ['Assignor'])
self.assertRoles(module, 'R-SHADOW-PERSON', ['Author'])
self.assertRoles(module, 'F-PRODUCTION*', ['Auditor'])
self.assertRoles(module, 'F-CUSTOMER', ['Auditor'])
self.assertRoles(module, module.Base_getOwnerId(), ['Owner'])
......
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