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
Labels
Merge Requests
141
Merge Requests
141
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
2ed1bb80
Commit
2ed1bb80
authored
Mar 06, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to current code behaviour.
parent
ccc9742e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
product/ERP5Type/tests/testConstraint.py
product/ERP5Type/tests/testConstraint.py
+3
-5
No files found.
product/ERP5Type/tests/testConstraint.py
View file @
2ed1bb80
...
@@ -548,7 +548,7 @@ class TestConstraint(PropertySheetTestCase):
...
@@ -548,7 +548,7 @@ class TestConstraint(PropertySheetTestCase):
SetObjectIntLocalProperty
\
SetObjectIntLocalProperty
\
CreatePropertyTypeValidity
\
CreatePropertyTypeValidity
\
CallFixConsistency
\
CallFixConsistency
\
CheckIfConstraint
Succeed
ed
\
CheckIfConstraint
Fail
ed
\
CallCheckConsistency
\
CallCheckConsistency
\
CheckIfConstraintSucceeded
\
CheckIfConstraintSucceeded
\
'
'
...
@@ -1273,8 +1273,7 @@ class TestConstraint(PropertySheetTestCase):
...
@@ -1273,8 +1273,7 @@ class TestConstraint(PropertySheetTestCase):
transaction
.
commit
()
transaction
.
commit
()
try
:
try
:
self
.
assertEqual
(
sorted
([
self
.
assertEqual
(
sorted
([
'Property default_organisation_title was migrated from local properties.'
,
'Property default_organisation_title was migrated from local properties.'
]),
'Property default_organisation_title was modified from foo to None.'
]),
sorted
([
str
(
q
.
getMessage
())
for
q
in
constraint
.
fixConsistency
(
obj
)]))
sorted
([
str
(
q
.
getMessage
())
for
q
in
constraint
.
fixConsistency
(
obj
)]))
self
.
assertEquals
(
'foo'
,
obj
.
getDefaultOrganisationTitle
())
self
.
assertEquals
(
'foo'
,
obj
.
getDefaultOrganisationTitle
())
self
.
assertEquals
(
'foo'
,
obj
.
default_organisation
.
getTitle
())
self
.
assertEquals
(
'foo'
,
obj
.
default_organisation
.
getTitle
())
...
@@ -1302,8 +1301,7 @@ class TestConstraint(PropertySheetTestCase):
...
@@ -1302,8 +1301,7 @@ class TestConstraint(PropertySheetTestCase):
property_id
=
"testing_category"
)
property_id
=
"testing_category"
)
# fix consistency
# fix consistency
self
.
assertEqual
(
sorted
([
self
.
assertEqual
(
sorted
([
'Property testing_category was migrated from local properties.'
,
'Property testing_category was migrated from local properties.'
]),
'Property testing_category was modified from organisation_module/%s to None.'
%
obj
.
getId
()]),
sorted
([
str
(
q
.
getMessage
())
for
q
in
constraint
.
fixConsistency
(
obj
)]))
sorted
([
str
(
q
.
getMessage
())
for
q
in
constraint
.
fixConsistency
(
obj
)]))
# now we can use testing_category as any category accessor
# now we can use testing_category as any category accessor
self
.
assertEqual
(
0
,
len
(
obj
.
_local_properties
))
self
.
assertEqual
(
0
,
len
(
obj
.
_local_properties
))
...
...
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