Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
9e965250
Commit
9e965250
authored
Jan 28, 2015
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testERP5Security.py: add ERP5Workflow compability.
parent
b5682726
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
product/ERP5Security/tests/testERP5Security.py
product/ERP5Security/tests/testERP5Security.py
+7
-3
No files found.
product/ERP5Security/tests/testERP5Security.py
View file @
9e965250
...
...
@@ -40,6 +40,8 @@ from Products.PluggableAuthService import PluggableAuthService
from
zope.interface.verify
import
verifyClass
from
DateTime
import
DateTime
import
pdb
class
TestUserManagement
(
ERP5TypeTestCase
):
"""Tests User Management in ERP5Security.
"""
...
...
@@ -50,7 +52,7 @@ class TestUserManagement(ERP5TypeTestCase):
def
getBusinessTemplateList
(
self
):
"""List of BT to install. """
return
(
'erp5_base'
,)
return
(
'erp5_
workflow'
,
'erp5_
base'
,)
def
beforeTearDown
(
self
):
"""Clears person module and invalidate caches when tests are finished."""
...
...
@@ -496,7 +498,8 @@ class TestLocalRoleManagement(ERP5TypeTestCase):
# any member can add organisations
self
.
portal
.
organisation_module
.
manage_permission
(
'Add portal content'
,
roles
=
[
'Member'
,
'Manager'
],
acquire
=
1
)
### zwj : pdb
pdb
.
set_trace
()
self
.
username
=
'usérn@me'
# create a user and open an assignement
pers
=
self
.
getPersonModule
().
newContent
(
portal_type
=
'Person'
,
...
...
@@ -511,6 +514,7 @@ class TestLocalRoleManagement(ERP5TypeTestCase):
self
.
tic
()
def
beforeTearDown
(
self
):
#pdb.set_trace()
"""Called before teardown."""
# clear base categories
self
.
person
.
getParentValue
().
manage_delObjects
([
self
.
person
.
getId
()])
...
...
@@ -543,7 +547,7 @@ class TestLocalRoleManagement(ERP5TypeTestCase):
def
getBusinessTemplateList
(
self
):
"""List of BT to install. """
return
(
'erp5_base'
,
'erp5_web'
,
'erp5_ingestion'
,
'erp5_dms'
,)
return
(
'erp5_
workflow'
,
'erp5_
base'
,
'erp5_web'
,
'erp5_ingestion'
,
'erp5_dms'
,)
def
test_RolesManagerInterfaces
(
self
):
"""Tests group manager plugin respects interfaces."""
...
...
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