Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zodburi
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
zodburi
Commits
cb1730b3
Commit
cb1730b3
authored
May 02, 2013
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress stray ZEO.zrpc logging output.
parent
c3612256
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
zodburi/tests/test_resolvers.py
zodburi/tests/test_resolvers.py
+7
-3
No files found.
zodburi/tests/test_resolvers.py
View file @
cb1730b3
...
@@ -263,15 +263,19 @@ class TestClientStorageURIResolver(unittest.TestCase):
...
@@ -263,15 +263,19 @@ class TestClientStorageURIResolver(unittest.TestCase):
def
test_invoke_factory
(
self
,
ClientStorage
):
def
test_invoke_factory
(
self
,
ClientStorage
):
resolver
=
self
.
_makeOne
()
resolver
=
self
.
_makeOne
()
factory
,
dbkw
=
resolver
(
'zeo:///var/nosuchfile?wait=false'
)
factory
,
dbkw
=
resolver
(
'zeo:///var/nosuchfile?wait=false'
)
factory
()
storage
=
factory
()
storage
.
close
()
ClientStorage
.
assert_called_once_with
(
'/var/nosuchfile'
,
wait
=
0
)
ClientStorage
.
assert_called_once_with
(
'/var/nosuchfile'
,
wait
=
0
)
def
test_invoke_factory_demostorage
(
self
):
@
mock
.
patch
(
'zodburi.resolvers.ClientStorage'
)
def
test_invoke_factory_demostorage
(
self
,
ClientStorage
):
from
ZODB.DemoStorage
import
DemoStorage
from
ZODB.DemoStorage
import
DemoStorage
resolver
=
self
.
_makeOne
()
resolver
=
self
.
_makeOne
()
factory
,
dbkw
=
resolver
(
'zeo:///var/nosuchfile?wait=false'
factory
,
dbkw
=
resolver
(
'zeo:///var/nosuchfile?wait=false'
'&demostorage=true'
)
'&demostorage=true'
)
self
.
assertTrue
(
isinstance
(
factory
(),
DemoStorage
))
storage
=
factory
()
storage
.
close
()
self
.
assertTrue
(
isinstance
(
storage
,
DemoStorage
))
def
test_dbargs
(
self
):
def
test_dbargs
(
self
):
resolver
=
self
.
_makeOne
()
resolver
=
self
.
_makeOne
()
...
...
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