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
Paul Graydon
erp5
Commits
edccff06
Commit
edccff06
authored
Dec 01, 2023
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testERP5Catalog: fix tests for erp5_sql_read_committed_connection.
parent
d30f090f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testERP5Catalog.py
...mplateItem/portal_components/test.erp5.testERP5Catalog.py
+5
-3
No files found.
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testERP5Catalog.py
View file @
edccff06
...
...
@@ -311,7 +311,8 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
immediate_reindex
=
True
,
)
path_list
=
[
person
.
getRelativeUrl
()]
self
.
checkRelativeUrlInSQLPathList
(
path_list
)
self
.
checkRelativeUrlInSQLPathList
(
path_list
,
connection_id
=
'erp5_sql_read_committed_connection'
)
self
.
checkRelativeUrlNotInSQLPathList
(
path_list
)
self
.
tic
()
self
.
checkRelativeUrlInSQLPathList
(
path_list
)
person_module
.
manage_delObjects
(
'2'
)
...
...
@@ -325,7 +326,8 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
self
.
checkRelativeUrlInSQLPathList
(
path_list
)
person_module
.
deleteContent
(
'3'
)
# Now delete things is made with activities
self
.
checkRelativeUrlNotInSQLPathList
(
path_list
)
self
.
checkRelativeUrlNotInSQLPathList
(
path_list
,
connection_id
=
'erp5_sql_read_committed_connection'
)
self
.
checkRelativeUrlInSQLPathList
(
path_list
)
self
.
tic
()
self
.
checkRelativeUrlNotInSQLPathList
(
path_list
)
# Now delete document while its indexation is running
...
...
@@ -835,7 +837,7 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
# We will delete the connector
# in order to make sure it will not work any more
portal
=
self
.
getPortal
()
portal
.
manage_delObjects
(
'erp5_sql_connection'
)
portal
.
manage_delObjects
(
'erp5_sql_
read_committed_
connection'
)
# Then it must be impossible to delete an object
unindex
=
portal_catalog
.
unindexObject
self
.
assertRaises
(
AttributeError
,
unindex
,
person
,
uid
=
person
.
getUid
())
...
...
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