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
Levin Zimmermann
erp5
Commits
4cb27dec
Commit
4cb27dec
authored
Dec 02, 2020
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMFActivity: remove obsolete unit test
parent
c4f4ecd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
32 deletions
+0
-32
product/CMFActivity/tests/testCMFActivity.py
product/CMFActivity/tests/testCMFActivity.py
+0
-32
No files found.
product/CMFActivity/tests/testCMFActivity.py
View file @
4cb27dec
...
@@ -928,38 +928,6 @@ class TestCMFActivity(ERP5TypeTestCase, LogInterceptor):
...
@@ -928,38 +928,6 @@ class TestCMFActivity(ERP5TypeTestCase, LogInterceptor):
activity_tool
.
flush
(
p
,
invoke
=
0
)
activity_tool
.
flush
(
p
,
invoke
=
0
)
self
.
commit
()
self
.
commit
()
def
test_82_AbortTransactionSynchronously
(
self
):
"""
This test checks if transaction.abort() synchronizes connections. It
didn't do so back in Zope 2.7
"""
# Make a new persistent object, and commit it so that an oid gets
# assigned.
module
=
self
.
getOrganisationModule
()
organisation
=
module
.
newContent
(
portal_type
=
'Organisation'
)
organisation_id
=
organisation
.
getId
()
self
.
tic
()
organisation
=
module
[
organisation_id
]
# Now fake a read conflict.
from
ZODB.POSException
import
ReadConflictError
tid
=
organisation
.
_p_serial
oid
=
organisation
.
_p_oid
conn
=
organisation
.
_p_jar
try
:
conn
.
db
().
invalidate
({
oid
:
tid
})
except
TypeError
:
conn
.
db
().
invalidate
(
tid
,
{
oid
:
tid
})
conn
.
_cache
.
invalidate
(
oid
)
# Access to invalidated object in non-MVCC connections should raise a
# conflict error
organisation
=
module
[
organisation_id
]
self
.
assertRaises
(
ReadConflictError
,
getattr
,
organisation
,
'uid'
)
self
.
abort
()
organisation
.
uid
@
for_each_activity
@
for_each_activity
def
testCallWithGroupIdParamater
(
self
,
activity
):
def
testCallWithGroupIdParamater
(
self
,
activity
):
dedup
=
activity
!=
'SQLQueue'
dedup
=
activity
!=
'SQLQueue'
...
...
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