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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
527ef6aa
Commit
527ef6aa
authored
Oct 04, 2001
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc strings
parent
dd25f9ec
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
12 deletions
+24
-12
trunk/src/ZODB/tests/HistoryStorage.py
trunk/src/ZODB/tests/HistoryStorage.py
+5
-2
trunk/src/ZODB/tests/IteratorStorage.py
trunk/src/ZODB/tests/IteratorStorage.py
+5
-2
trunk/src/ZODB/tests/PackableStorage.py
trunk/src/ZODB/tests/PackableStorage.py
+1
-2
trunk/src/ZODB/tests/StorageTestBase.py
trunk/src/ZODB/tests/StorageTestBase.py
+9
-4
trunk/src/ZODB/tests/TransactionalUndoStorage.py
trunk/src/ZODB/tests/TransactionalUndoStorage.py
+4
-2
No files found.
trunk/src/ZODB/tests/HistoryStorage.py
View file @
527ef6aa
# 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
...
...
trunk/src/ZODB/tests/IteratorStorage.py
View file @
527ef6aa
# 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
...
...
trunk/src/ZODB/tests/PackableStorage.py
View file @
527ef6aa
# 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()
...
...
trunk/src/ZODB/tests/StorageTestBase.py
View file @
527ef6aa
# 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
()
...
...
trunk/src/ZODB/tests/TransactionalUndoStorage.py
View file @
527ef6aa
# 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