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
alecs_myu
erp5
Commits
2c3ec63c
Commit
2c3ec63c
authored
Apr 18, 2019
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! CMFCategory: keep only the first occurrence of each category while preserving order.
parent
3985f158
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
bt5/erp5_ui_test/PathTemplateItem/portal_tests/relation_field_zuite/testSimpleMultiRelationField.zpt
...sts/relation_field_zuite/testSimpleMultiRelationField.zpt
+3
-3
product/ERP5Type/tests/testERP5Type.py
product/ERP5Type/tests/testERP5Type.py
+6
-6
No files found.
bt5/erp5_ui_test/PathTemplateItem/portal_tests/relation_field_zuite/testSimpleMultiRelationField.zpt
View file @
2c3ec63c
...
...
@@ -86,7 +86,7 @@ to set categories</td></tr>
<tr>
<td>
verifyValue
</td>
<td>
field_my_bar_category_title_list
</td>
<td>
Title 0
<br
/>
Title 1
<
br
/>
Title 1
<
/td>
<td>
Title 0
<br
/>
Title 1
</td>
<td></td>
</tr>
<tr>
...
...
@@ -104,7 +104,7 @@ to set categories</td></tr>
<tr>
<td>
verifyValue
</td>
<td>
field_my_bar_category_title_list
</td>
<td>
Title 0
<br
/>
Title 0
<br
/>
Title 1
<
br
/>
Title 1
<
/td>
<td>
Title 0
<br
/>
Title 0
<br
/>
Title 1
</td>
<td></td>
</tr>
<tr>
...
...
@@ -122,7 +122,7 @@ to set categories</td></tr>
<tr>
<td>
verifyValue
</td>
<td>
field_my_bar_category_title_list
</td>
<td>
Title 1
<br
/>
Title 0
<
br
/>
Title 1
<
/td>
<td>
Title 1
<br
/>
Title 0
</td>
<td></td>
</tr>
<!-- XXX don't test jump for now, because we don't have good locators anyway.
...
...
product/ERP5Type/tests/testERP5Type.py
View file @
2c3ec63c
...
...
@@ -638,12 +638,12 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
person
.
setRegionValue
(
alpha
)
self
.
assertEqual
(
person
.
getRegion
(),
'alpha'
)
person
.
setRegionValueList
([
alpha
,
alpha
])
self
.
assertEqual
(
person
.
getRegionList
(),
[
'alpha'
,
'alpha'
])
self
.
assertEqual
(
person
.
getRegionList
(),
[
'alpha'
])
person
.
setRegionValueSet
([
alpha
,
alpha
])
self
.
assertEqual
(
person
.
getRegionList
(),
[
'alpha'
])
self
.
assertEqual
(
person
.
getRegionSet
(),
[
'alpha'
])
person
.
setRegionValueList
([
alpha
,
beta
,
alpha
])
self
.
assertEqual
(
person
.
getRegionList
(),
[
'alpha'
,
'beta'
,
'alpha'
])
self
.
assertEqual
(
person
.
getRegionList
(),
[
'alpha'
,
'beta'
])
person
.
setRegionValueSet
([
alpha
,
beta
,
alpha
])
result
=
person
.
getRegionSet
()
result
.
sort
()
...
...
@@ -676,12 +676,12 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
person
.
setRegion
(
'alpha'
)
self
.
assertEqual
(
person
.
getRegion
(),
'alpha'
)
person
.
setRegionList
([
'alpha'
,
'alpha'
])
self
.
assertEqual
(
person
.
getRegionList
(),
[
'alpha'
,
'alpha'
])
self
.
assertEqual
(
person
.
getRegionList
(),
[
'alpha'
])
self
.
assertEqual
(
person
.
getRegionSet
(),
[
'alpha'
])
person
.
setRegionSet
([
'beta'
,
'alpha'
,
'alpha'
])
self
.
assertEqual
(
person
.
getRegionList
(),
[
'alpha'
,
'beta'
])
person
.
setRegionList
([
'beta'
,
'alpha'
,
'alpha'
])
self
.
assertEqual
(
person
.
getRegionList
(),
[
'beta'
,
'alpha'
,
'alpha'
])
self
.
assertEqual
(
person
.
getRegionList
(),
[
'beta'
,
'alpha'
])
# at this point the person have a default region set to the first item in
# the list.
self
.
assertEqual
(
person
.
getDefaultRegion
(),
'beta'
)
...
...
@@ -720,7 +720,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
person
.
setRegionUidSet
([
alpha
.
getUid
(),
alpha
.
getUid
()])
self
.
assertEqual
(
person
.
getRegionList
(),
[
'alpha'
])
person
.
setRegionUidList
([
alpha
.
getUid
(),
beta
.
getUid
(),
alpha
.
getUid
()])
self
.
assertEqual
(
person
.
getRegionList
(),
[
'alpha'
,
'beta'
,
'alpha'
])
self
.
assertEqual
(
person
.
getRegionList
(),
[
'alpha'
,
'beta'
])
person
.
setRegionUidSet
([
alpha
.
getUid
(),
beta
.
getUid
(),
alpha
.
getUid
()])
self
.
assertEqual
(
sorted
(
person
.
getRegionSet
()),
[
'alpha'
,
'beta'
])
person
.
setDefaultRegionUid
(
beta
.
getUid
())
...
...
@@ -753,7 +753,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
person
.
setSubject
(
'beta'
)
self
.
assertEqual
(
person
.
getSubject
(),
'beta'
)
person
.
setSubjectList
([
'alpha'
,
'alpha'
])
self
.
assertEqual
(
person
.
getSubjectList
(),
[
'alpha'
,
'alpha'
])
self
.
assertEqual
(
person
.
getSubjectList
(),
[
'alpha'
])
self
.
assertEqual
(
person
.
getSubjectSet
(),
[
'alpha'
])
person
.
setSubjectSet
([
'beta'
,
'beta'
])
self
.
assertEqual
(
person
.
getSubjectList
(),
[
'beta'
])
...
...
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