Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZEO
Commits
4cdbf8b1
Commit
4cdbf8b1
authored
Jul 06, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed tests
parent
dabcb601
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
2 deletions
+11
-2
src/ZEO/tests/CommitLockTests.py
src/ZEO/tests/CommitLockTests.py
+2
-0
src/ZEO/tests/ConnectionTests.py
src/ZEO/tests/ConnectionTests.py
+3
-0
src/ZEO/tests/testConversionSupport.py
src/ZEO/tests/testConversionSupport.py
+2
-0
src/ZEO/tests/testZEO.py
src/ZEO/tests/testZEO.py
+4
-2
No files found.
src/ZEO/tests/CommitLockTests.py
View file @
4cdbf8b1
...
@@ -30,6 +30,8 @@ class DummyDB:
...
@@ -30,6 +30,8 @@ class DummyDB:
def
invalidate
(
self
,
*
args
,
**
kwargs
):
def
invalidate
(
self
,
*
args
,
**
kwargs
):
pass
pass
transform_record_data
=
untransform_record_data
=
lambda
self
,
data
:
data
class
WorkerThread
(
TestThread
):
class
WorkerThread
(
TestThread
):
# run the entire test in a thread so that the blocking call for
# run the entire test in a thread so that the blocking call for
...
...
src/ZEO/tests/ConnectionTests.py
View file @
4cdbf8b1
...
@@ -59,6 +59,9 @@ class DummyDB:
...
@@ -59,6 +59,9 @@ class DummyDB:
def
invalidateCache
(
self
):
def
invalidateCache
(
self
):
pass
pass
transform_record_data
=
untransform_record_data
=
lambda
self
,
data
:
data
class
CommonSetupTearDown
(
StorageTestBase
):
class
CommonSetupTearDown
(
StorageTestBase
):
"""Common boilerplate"""
"""Common boilerplate"""
...
...
src/ZEO/tests/testConversionSupport.py
View file @
4cdbf8b1
...
@@ -52,6 +52,8 @@ class FakeServer:
...
@@ -52,6 +52,8 @@ class FakeServer:
def
register_connection
(
*
args
):
def
register_connection
(
*
args
):
return
None
,
None
return
None
,
None
client_conflict_resolution
=
False
class
FakeConnection
:
class
FakeConnection
:
protocol_version
=
b'Z4'
protocol_version
=
b'Z4'
addr
=
'test'
addr
=
'test'
...
...
src/ZEO/tests/testZEO.py
View file @
4cdbf8b1
...
@@ -492,6 +492,8 @@ class ZRPCConnectionTests(ZEO.tests.ConnectionTests.CommonSetupTearDown):
...
@@ -492,6 +492,8 @@ class ZRPCConnectionTests(ZEO.tests.ConnectionTests.CommonSetupTearDown):
self
.
_invalidatedCache
+=
1
self
.
_invalidatedCache
+=
1
def
invalidate
(
*
a
,
**
k
):
def
invalidate
(
*
a
,
**
k
):
pass
pass
transform_record_data
=
untransform_record_data
=
\
lambda
self
,
data
:
data
db
=
DummyDB
()
db
=
DummyDB
()
storage
.
registerDB
(
db
)
storage
.
registerDB
(
db
)
...
@@ -936,14 +938,14 @@ def tpc_finish_error():
...
@@ -936,14 +938,14 @@ def tpc_finish_error():
buffer, sadly, using implementation details:
buffer, sadly, using implementation details:
>>> tbuf = t.data(client)
>>> tbuf = t.data(client)
>>> tbuf.resolved = None
>>> tbuf.
client_
resolved = None
tpc_finish will fail:
tpc_finish will fail:
>>> client.tpc_finish(t) # doctest: +ELLIPSIS
>>> client.tpc_finish(t) # doctest: +ELLIPSIS
Traceback (most recent call last):
Traceback (most recent call last):
...
...
Typ
eError: ...
Attribut
eError: ...
>>> client.tpc_abort(t)
>>> client.tpc_abort(t)
>>> t.abort()
>>> t.abort()
...
...
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