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
c5bf9abd
Commit
c5bf9abd
authored
Oct 04, 2001
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc strings
parent
e485bfad
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
12 deletions
+24
-12
src/ZODB/tests/HistoryStorage.py
src/ZODB/tests/HistoryStorage.py
+5
-2
src/ZODB/tests/IteratorStorage.py
src/ZODB/tests/IteratorStorage.py
+5
-2
src/ZODB/tests/PackableStorage.py
src/ZODB/tests/PackableStorage.py
+1
-2
src/ZODB/tests/StorageTestBase.py
src/ZODB/tests/StorageTestBase.py
+9
-4
src/ZODB/tests/TransactionalUndoStorage.py
src/ZODB/tests/TransactionalUndoStorage.py
+4
-2
No files found.
src/ZODB/tests/HistoryStorage.py
View file @
c5bf9abd
# Run the history() related tests for a storage. Any storage that supports
# the history() method should be able to pass all these tests.
"""Run the history() related tests for a storage.
Any storage that supports the history() method should be able to pass
all these tests.
"""
from
ZODB.tests.MinPO
import
MinPO
from
ZODB.tests.StorageTestBase
import
zodb_unpickle
...
...
src/ZODB/tests/IteratorStorage.py
View file @
c5bf9abd
# Run tests against the iterator() interface for storages. Any storage that
# supports the iterator() method should be able to pass all these tests.
"""Run tests against the iterator() interface for storages.
Any storage that supports the iterator() method should be able to pass
all these tests.
"""
from
ZODB.tests.MinPO
import
MinPO
from
ZODB.tests.StorageTestBase
import
zodb_unpickle
...
...
src/ZODB/tests/PackableStorage.py
View file @
c5bf9abd
# Run some tests relevant for storages that support pack()
"""Run some tests relevant for storages that support pack()."""
try
:
import
cPickle
...
...
@@ -18,7 +18,6 @@ from ZODB.referencesf import referencesf
ZERO
=
'
\
0
'
*
8
# This class is for the root object. It must not contain a getoid() method
# (really, attribute). The persistent pickling machinery -- in the dumps()
...
...
src/ZODB/tests/StorageTestBase.py
View file @
c5bf9abd
# This class must be one of the mixin base class for your storage test. It
# provides basic setUp() and tearDown() semantics (which you can override),
# and it also provides a helper method _dostore() which performs a complete
# store transaction for a single object revision.
"""Provide a mixin base class for storage tests.
The StorageTestBase class provides basic setUp() and tearDown()
semantics (which you can override), and it also provides a helper
method _dostore() which performs a complete store transaction for a
single object revision.
"""
import
pickle
import
string
...
...
@@ -18,6 +21,7 @@ from ZODB.tests.MinPO import MinPO
ZERO
=
'
\
0
'
*
8
def
zodb_pickle
(
obj
):
"""Create a pickle in the format expected by ZODB."""
f
=
StringIO
()
p
=
Pickler
(
f
,
1
)
klass
=
obj
.
__class__
...
...
@@ -35,6 +39,7 @@ def zodb_pickle(obj):
return
f
.
getvalue
(
1
)
def
zodb_unpickle
(
data
):
"""Unpickle an object stored using the format expected by ZODB."""
f
=
StringIO
(
data
)
u
=
Unpickler
(
f
)
klass_info
=
u
.
load
()
...
...
src/ZODB/tests/TransactionalUndoStorage.py
View file @
c5bf9abd
# Check transactionalUndo(). Any storage that supports transactionalUndo()
# must pass these tests.
"""Check transactionalUndo().
Any storage that supports transactionalUndo() must pass these tests.
"""
import
types
from
ZODB
import
POSException
...
...
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