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
Ludovic Kiefer
erp5
Commits
69e89cec
Commit
69e89cec
authored
Mar 06, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pyflaked.
Code cleaned up from not needed variables.
parent
5a890659
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
product/ERP5Type/tests/testConstraint.py
product/ERP5Type/tests/testConstraint.py
+6
-7
No files found.
product/ERP5Type/tests/testConstraint.py
View file @
69e89cec
...
@@ -83,7 +83,7 @@ class TestConstraint(PropertySheetTestCase):
...
@@ -83,7 +83,7 @@ class TestConstraint(PropertySheetTestCase):
group
=
self
.
category_tool
.
group
group
=
self
.
category_tool
.
group
if
'testGroup1'
not
in
group
.
contentIds
():
if
'testGroup1'
not
in
group
.
contentIds
():
for
category_id
in
category_list
:
for
category_id
in
category_list
:
o
=
group
.
newContent
(
portal_type
=
'Category'
,
group
.
newContent
(
portal_type
=
'Category'
,
id
=
category_id
)
id
=
category_id
)
def
stepDeleteObjectModuleContent
(
self
,
sequence
=
None
,
def
stepDeleteObjectModuleContent
(
self
,
sequence
=
None
,
...
@@ -180,7 +180,7 @@ class TestConstraint(PropertySheetTestCase):
...
@@ -180,7 +180,7 @@ class TestConstraint(PropertySheetTestCase):
object
=
sequence
.
get
(
'object'
)
object
=
sequence
.
get
(
'object'
)
# Do not call edit, as we want to explicitely modify the property
# Do not call edit, as we want to explicitely modify the property
# (and edit modify only if value is different)
# (and edit modify only if value is different)
method
=
object
.
setTitle
(
''
)
object
.
setTitle
(
''
)
def
stepSetObjectIntTitle
(
self
,
sequence
=
None
,
def
stepSetObjectIntTitle
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
sequence_list
=
None
,
**
kw
):
...
@@ -188,7 +188,6 @@ class TestConstraint(PropertySheetTestCase):
...
@@ -188,7 +188,6 @@ class TestConstraint(PropertySheetTestCase):
Set a different title value
Set a different title value
"""
"""
object
=
sequence
.
get
(
'object'
)
object
=
sequence
.
get
(
'object'
)
object_title
=
self
.
object_title
object
.
edit
(
title
=
12345
)
object
.
edit
(
title
=
12345
)
def
stepSetObjectBadTypedProperty
(
self
,
sequence
=
None
,
def
stepSetObjectBadTypedProperty
(
self
,
sequence
=
None
,
...
@@ -1285,7 +1284,7 @@ class TestConstraint(PropertySheetTestCase):
...
@@ -1285,7 +1284,7 @@ class TestConstraint(PropertySheetTestCase):
"""Tests PropertyTypeValidity can repairs categories when this property
"""Tests PropertyTypeValidity can repairs categories when this property
is added on the class later.
is added on the class later.
"""
"""
bc
=
self
.
getPortal
().
portal_categories
.
newContent
(
self
.
getPortal
().
portal_categories
.
newContent
(
portal_type
=
'Base Category'
,
portal_type
=
'Base Category'
,
id
=
'testing_category'
)
id
=
'testing_category'
)
constraint
=
self
.
_createGenericConstraint
(
constraint
=
self
.
_createGenericConstraint
(
...
@@ -1424,7 +1423,7 @@ class TestConstraint(PropertySheetTestCase):
...
@@ -1424,7 +1423,7 @@ class TestConstraint(PropertySheetTestCase):
# constraint are registred in property sheets
# constraint are registred in property sheets
obj
=
self
.
_makeOne
()
obj
=
self
.
_makeOne
()
obj
.
setTitle
(
'b'
)
obj
.
setTitle
(
'b'
)
property_sheet
=
self
.
_addProperty
(
self
.
_addProperty
(
obj
.
getPortalType
(),
obj
.
getPortalType
(),
"TestRegisterWithPropertySheet"
,
"TestRegisterWithPropertySheet"
,
commit
=
True
,
commit
=
True
,
...
@@ -1447,7 +1446,7 @@ class TestConstraint(PropertySheetTestCase):
...
@@ -1447,7 +1446,7 @@ class TestConstraint(PropertySheetTestCase):
# messages can be overriden in property sheet
# messages can be overriden in property sheet
obj
=
self
.
_makeOne
()
obj
=
self
.
_makeOne
()
obj
.
setTitle
(
'b'
)
obj
.
setTitle
(
'b'
)
property_sheet
=
self
.
_addProperty
(
self
.
_addProperty
(
obj
.
getPortalType
(),
obj
.
getPortalType
(),
"TestOverrideMessage"
,
"TestOverrideMessage"
,
commit
=
True
,
commit
=
True
,
...
...
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