Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Eteri
erp5_fork
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):
self
.
assertEqual
(
module
.
objectCount
(),
2
)
def
test_getPropertyForUid
(
self
):
error_list
=
[]
for
i
in
self
.
portal
.
objectValues
():
if
i
.
getUid
()
!=
0
and
i
.
getUid
()
!=
i
.
getProperty
(
'uid'
):
error_list
.
append
((
i
.
getId
(),
i
.
getUid
(),
i
.
getProperty
(
'uid'
)))
self
.
assertEquals
(
error_list
,
[
])
self
.
assertEqual
([],
[
(
i
.
getId
(),
i
.
getUid
(),
i
.
getProperty
(
'uid'
))
for
i
in
self
.
portal
.
objectValues
()
if
i
.
getId
()
not
in
(
'portal_uidhandler'
,)
and
0
!=
i
.
getUid
()
!=
i
.
getProperty
(
'uid'
)
])
def
test_site_manager_and_translation_migration
(
self
):
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