Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
Commits
b14ddde5
Commit
b14ddde5
authored
Jan 03, 2013
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test_getPropertyForUid now that runUnitTest installs portal_uidhandler
See commit
4718f5e1
parent
9f8c1492
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
product/ERP5/tests/testERP5Core.py
product/ERP5/tests/testERP5Core.py
+5
-5
No files found.
product/ERP5/tests/testERP5Core.py
View file @
b14ddde5
...
@@ -472,11 +472,11 @@ class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional):
...
@@ -472,11 +472,11 @@ class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional):
self
.
assertEqual
(
module
.
objectCount
(),
2
)
self
.
assertEqual
(
module
.
objectCount
(),
2
)
def
test_getPropertyForUid
(
self
):
def
test_getPropertyForUid
(
self
):
error_list
=
[]
self
.
assertEqual
([],
[
for
i
in
self
.
portal
.
objectValues
():
(
i
.
getId
(),
i
.
getUid
(),
i
.
getProperty
(
'uid'
))
if
i
.
getUid
()
!=
0
and
i
.
getUid
()
!=
i
.
getProperty
(
'uid'
):
for
i
in
self
.
portal
.
objectValues
()
error_list
.
append
((
i
.
getId
(),
i
.
getUid
(),
i
.
getProperty
(
'uid'
)))
if
i
.
getId
()
not
in
(
'portal_uidhandler'
,)
and
self
.
assertEquals
(
error_list
,
[
])
0
!=
i
.
getUid
()
!=
i
.
getProperty
(
'uid'
)
])
def
test_site_manager_and_translation_migration
(
self
):
def
test_site_manager_and_translation_migration
(
self
):
from
zope.site.hooks
import
getSite
,
setSite
from
zope.site.hooks
import
getSite
,
setSite
...
...
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