Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
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
Paul Graydon
erp5
Commits
5f328712
Commit
5f328712
authored
Jun 14, 2012
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stepTic -> tic
parent
63e8260b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
product/ERP5/tests/testBusinessTemplate.py
product/ERP5/tests/testBusinessTemplate.py
+6
-6
product/ERP5Catalog/tests/testERP5Catalog.py
product/ERP5Catalog/tests/testERP5Catalog.py
+2
-2
No files found.
product/ERP5/tests/testBusinessTemplate.py
View file @
5f328712
...
@@ -6555,7 +6555,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
...
@@ -6555,7 +6555,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
new_object
.
__ac_local_roles__
=
dict
(
group
=
[
'Assignee'
])
new_object
.
__ac_local_roles__
=
dict
(
group
=
[
'Assignee'
])
new_object
.
__ac_local_roles_group_id_dict__
=
dict
(
group
=
(
'Alternate'
,))
new_object
.
__ac_local_roles_group_id_dict__
=
dict
(
group
=
(
'Alternate'
,))
self
.
stepT
ic
()
self
.
t
ic
()
transaction
.
commit
()
transaction
.
commit
()
object_type
.
newContent
(
portal_type
=
'Role Information'
,
object_type
.
newContent
(
portal_type
=
'Role Information'
,
...
@@ -6569,13 +6569,13 @@ class TestBusinessTemplate(BusinessTemplateMixin):
...
@@ -6569,13 +6569,13 @@ class TestBusinessTemplate(BusinessTemplateMixin):
template_path_list
=
(
'geek_module/1'
,),
template_path_list
=
(
'geek_module/1'
,),
template_portal_type_role_list
=
(
'Geek Object'
,),)
template_portal_type_role_list
=
(
'Geek Object'
,),)
self
.
stepT
ic
()
self
.
t
ic
()
bt
.
build
()
bt
.
build
()
self
.
stepT
ic
()
self
.
t
ic
()
export_dir
=
tempfile
.
mkdtemp
()
export_dir
=
tempfile
.
mkdtemp
()
try
:
try
:
bt
.
export
(
path
=
export_dir
,
local
=
True
)
bt
.
export
(
path
=
export_dir
,
local
=
True
)
self
.
stepT
ic
()
self
.
t
ic
()
new_bt
=
self
.
portal
.
portal_templates
.
download
(
new_bt
=
self
.
portal
.
portal_templates
.
download
(
url
=
'file://%s'
%
export_dir
)
url
=
'file://%s'
%
export_dir
)
finally
:
finally
:
...
@@ -6584,7 +6584,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
...
@@ -6584,7 +6584,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
# uninstall role information and paths
# uninstall role information and paths
object_type
.
manage_delObjects
([
x
.
id
for
x
in
object_type
.
getRoleInformationList
()])
object_type
.
manage_delObjects
([
x
.
id
for
x
in
object_type
.
getRoleInformationList
()])
self
.
portal
.
geek_module
.
manage_delObjects
([
'1'
])
self
.
portal
.
geek_module
.
manage_delObjects
([
'1'
])
self
.
stepT
ic
()
self
.
t
ic
()
new_bt
.
install
()
new_bt
.
install
()
try
:
try
:
...
@@ -6601,7 +6601,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
...
@@ -6601,7 +6601,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
saved_sql_catalog_security_uid_columns
saved_sql_catalog_security_uid_columns
types_tool
.
manage_delObjects
([
'Geek Object'
,
'Geek Module'
])
types_tool
.
manage_delObjects
([
'Geek Object'
,
'Geek Module'
])
self
.
portal
.
manage_delObjects
([
'geek_module'
])
self
.
portal
.
manage_delObjects
([
'geek_module'
])
self
.
stepT
ic
()
self
.
t
ic
()
def
test_BusinessTemplateWithTest
(
self
):
def
test_BusinessTemplateWithTest
(
self
):
sequence_list
=
SequenceList
()
sequence_list
=
SequenceList
()
...
...
product/ERP5Catalog/tests/testERP5Catalog.py
View file @
5f328712
...
@@ -4481,7 +4481,7 @@ CREATE TABLE alternate_roles_and_users (
...
@@ -4481,7 +4481,7 @@ CREATE TABLE alternate_roles_and_users (
local_roles_group_id
=
'Alternate'
)
local_roles_group_id
=
'Alternate'
)
self
.
portal
.
portal_caches
.
clearAllCache
()
self
.
portal
.
portal_caches
.
clearAllCache
()
self
.
stepT
ic
()
self
.
t
ic
()
try
:
try
:
# create two persons and users
# create two persons and users
...
@@ -4496,7 +4496,7 @@ CREATE TABLE alternate_roles_and_users (
...
@@ -4496,7 +4496,7 @@ CREATE TABLE alternate_roles_and_users (
user2
.
newContent
(
portal_type
=
'Assignment'
).
open
()
user2
.
newContent
(
portal_type
=
'Assignment'
).
open
()
user2
.
updateLocalRolesOnSecurityGroups
()
user2
.
updateLocalRolesOnSecurityGroups
()
self
.
assertEquals
(
user2
.
__ac_local_roles__
.
get
(
'user2'
),
[
'Auditor'
])
self
.
assertEquals
(
user2
.
__ac_local_roles__
.
get
(
'user2'
),
[
'Auditor'
])
self
.
stepT
ic
()
self
.
t
ic
()
# security_uid_dict in catalog contains entries for user1 and user2:
# security_uid_dict in catalog contains entries for user1 and user2:
user1_alternate_security_uid
=
sql_catalog
.
security_uid_dict
[
user1_alternate_security_uid
=
sql_catalog
.
security_uid_dict
[
...
...
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