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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
7c1eb8f5
Commit
7c1eb8f5
authored
Jan 18, 2018
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add coverage for 'ZEO.client' convenience function.
parent
9a42451c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
src/ZEO/tests/testZEO.py
src/ZEO/tests/testZEO.py
+27
-1
No files found.
src/ZEO/tests/testZEO.py
View file @
7c1eb8f5
...
...
@@ -75,6 +75,30 @@ class CreativeGetState(persistent.Persistent):
return
super
(
CreativeGetState
,
self
).
__getstate__
()
class
DummyClientThread
(
object
):
def
__init__
(
self
,
*
args
,
**
kw
):
self
.
_args
=
args
self
.
_kw
=
kw
def
call
(
self
):
pass
def
async
(
self
):
pass
def
async_iter
(
self
):
pass
def
wait
(
self
):
pass
class
Test_convenience_functions
(
unittest
.
TestCase
):
def
test_ZEO_client_convenience
(
self
):
import
ZEO
client
=
ZEO
.
client
(
8001
,
wait
=
False
,
_client_factory
=
DummyClientThread
)
self
.
assertIsInstance
(
client
,
ClientStorage
)
class
MiscZEOTests
(
object
):
"""ZEO tests that don't fit in elsewhere."""
...
...
@@ -1636,7 +1660,9 @@ class ServerManagingClientStorageForIExternalGCTest(
ZEO
.
ClientStorage
.
_check_blob_cache_size
(
self
.
blob_dir
,
0
)
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
=
unittest
.
TestSuite
((
unittest
.
makeSuite
(
Test_convenience_functions
),
))
zeo
=
unittest
.
TestSuite
()
zeo
.
addTest
(
unittest
.
makeSuite
(
ZODB
.
tests
.
util
.
AAAA_Test_Runner_Hack
))
...
...
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