Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
Nicolas Wavrant
ZODB
Commits
f635b604
Commit
f635b604
authored
Jan 14, 2003
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added MappingStorageTests. Set FileStorageTests and BDBTests to level
2 so they aren't normally run.
parent
eac01b5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
src/ZEO/tests/testZEO.py
src/ZEO/tests/testZEO.py
+17
-2
No files found.
src/ZEO/tests/testZEO.py
View file @
f635b604
...
...
@@ -128,6 +128,7 @@ class GenericTests(
class
FileStorageTests
(
GenericTests
):
"""Test ZEO backed by a FileStorage."""
level
=
2
def
setUp
(
self
):
zLOG
.
LOG
(
"testZEO"
,
zLOG
.
INFO
,
"setUp() %s"
%
self
.
id
())
...
...
@@ -158,9 +159,9 @@ class FileStorageTests(GenericTests):
</Storage>
"""
%
filename
class
BDBTests
(
FileStorageTests
):
"""ZEO backed by a Berkeley full storage."""
level
=
2
def
getStorage
(
self
):
self
.
_envdir
=
tempfile
.
mktemp
()
...
...
@@ -172,9 +173,23 @@ class BDBTests(FileStorageTests):
</Storage>
"""
%
self
.
_envdir
class
MappingStorageTests
(
FileStorageTests
):
"""ZEO backed by a Mapping storage."""
def
getStorage
(
self
):
self
.
_envdir
=
tempfile
.
mktemp
()
# Return a 1-tuple
return
"""
\
<Storage>
type MappingStorage
name %s
</Storage>
"""
%
self
.
_envdir
test_classes
=
[
FileStorageTests
]
test_classes
=
[
FileStorageTests
,
MappingStorageTests
]
import
BDBStorage
if
BDBStorage
.
is_available
:
...
...
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