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
Léo-Paul Géneau
erp5
Commits
db0ee9b5
Commit
db0ee9b5
authored
Jun 18, 2019
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testERP5Catalog: Check that deleting "a/b" then "a" unindexes both.
parent
f3263e9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
product/ERP5Catalog/tests/testERP5Catalog.py
product/ERP5Catalog/tests/testERP5Catalog.py
+8
-1
No files found.
product/ERP5Catalog/tests/testERP5Catalog.py
View file @
db0ee9b5
...
...
@@ -185,10 +185,17 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
portal_catalog
=
self
.
getCatalogTool
()
person_module
=
self
.
getPersonModule
()
person
=
person_module
.
newContent
(
id
=
'1'
,
portal_type
=
'Person'
)
path_list
=
[
person
.
getRelativeUrl
()]
address
=
person
.
newContent
(
portal_type
=
'Address'
)
path_list
=
[
person
.
getRelativeUrl
(),
address
.
getRelativeUrl
()]
self
.
checkRelativeUrlNotInSQLPathList
(
path_list
)
self
.
tic
()
self
.
checkRelativeUrlInSQLPathList
(
path_list
)
# Delete subobject in a first transaction, then do not tic and...
person
.
manage_delObjects
(
ids
=
[
address
.
getId
()])
self
.
commit
()
# ...delete its container in another transaction, to check that both
# do get properly unindexed (subobject's unindexation does not get
# deleted when deleting its container).
person_module
.
manage_delObjects
(
'1'
)
self
.
tic
()
self
.
checkRelativeUrlNotInSQLPathList
(
path_list
)
...
...
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