Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos.core
Commits
83779f86
Commit
83779f86
authored
Feb 14, 2024
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_erp5: test: fixup
parent
6ad42f35
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSCoreSkins.py
...teItem/portal_components/test.erp5.testSlapOSCoreSkins.py
+2
-2
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5GroupRoleSecurity.py
...l_components/test.erp5.testSlapOSERP5GroupRoleSecurity.py
+1
-1
No files found.
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSCoreSkins.py
View file @
83779f86
...
...
@@ -184,10 +184,10 @@ class TestPaymentTransaction_getSecurityCategoryFromUser(TestSlapOSCoreMixin):
self
.
portal
.
PaymentTransaction_getSecurityCategoryFromUser
([],
None
,
payment
,
None
))
shadow_user_id
=
'SHADOW-%s'
%
person
.
getUserId
()
self
.
assertEqual
({
'A
uditor
'
:
[
shadow_user_id
]},
self
.
assertEqual
({
'A
ssignee
'
:
[
shadow_user_id
]},
self
.
portal
.
PaymentTransaction_getSecurityCategoryFromUser
([
"destination_section"
],
None
,
payment
,
None
))
self
.
assertEqual
({
'A
uditor
'
:
[
shadow_user_id
]},
self
.
assertEqual
({
'A
ssignee
'
:
[
shadow_user_id
]},
self
.
portal
.
PaymentTransaction_getSecurityCategoryFromUser
([
"couscous"
,
"destination_section"
],
None
,
payment
,
None
))
class
TestPayzenEvent_getSecurityCategoryFromUserr
(
TestSlapOSCoreMixin
):
...
...
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5GroupRoleSecurity.py
View file @
83779f86
...
...
@@ -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'
,
[
'A
ssign
or'
])
self
.
assertRoles
(
module
,
'R-SHADOW-PERSON'
,
[
'A
uth
or'
])
self
.
assertRoles
(
module
,
'F-PRODUCTION*'
,
[
'Auditor'
])
self
.
assertRoles
(
module
,
'F-CUSTOMER'
,
[
'Auditor'
])
self
.
assertRoles
(
module
,
module
.
Base_getOwnerId
(),
[
'Owner'
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment