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
Joshua
zodb
Commits
65e022fd
Commit
65e022fd
authored
May 04, 2009
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added standard setup and teardown.
parent
54b6e14c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/ZODB/tests/testConfig.py
src/ZODB/tests/testConfig.py
+5
-2
No files found.
src/ZODB/tests/testConfig.py
View file @
65e022fd
...
@@ -18,14 +18,16 @@ import unittest
...
@@ -18,14 +18,16 @@ import unittest
import
transaction
import
transaction
import
ZODB.config
import
ZODB.config
import
ZODB.tests.util
from
ZODB.POSException
import
ReadOnlyError
from
ZODB.POSException
import
ReadOnlyError
class
ConfigTestBase
(
unittest
.
TestCase
):
class
ConfigTestBase
(
ZODB
.
tests
.
util
.
TestCase
):
def
_opendb
(
self
,
s
):
def
_opendb
(
self
,
s
):
return
ZODB
.
config
.
databaseFromString
(
s
)
return
ZODB
.
config
.
databaseFromString
(
s
)
def
tearDown
(
self
):
def
tearDown
(
self
):
ZODB
.
tests
.
util
.
TestCase
.
tearDown
(
self
)
if
getattr
(
self
,
"storage"
,
None
)
is
not
None
:
if
getattr
(
self
,
"storage"
,
None
)
is
not
None
:
self
.
storage
.
cleanup
()
self
.
storage
.
cleanup
()
...
@@ -222,7 +224,8 @@ def multi_atabases():
...
@@ -222,7 +224,8 @@ def multi_atabases():
def
test_suite
():
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
=
unittest
.
TestSuite
()
suite
.
addTest
(
doctest
.
DocTestSuite
())
suite
.
addTest
(
doctest
.
DocTestSuite
(
setUp
=
ZODB
.
tests
.
util
.
setUp
,
tearDown
=
ZODB
.
tests
.
util
.
tearDown
))
suite
.
addTest
(
unittest
.
makeSuite
(
ZODBConfigTest
))
suite
.
addTest
(
unittest
.
makeSuite
(
ZODBConfigTest
))
suite
.
addTest
(
unittest
.
makeSuite
(
ZEOConfigTest
))
suite
.
addTest
(
unittest
.
makeSuite
(
ZEOConfigTest
))
return
suite
return
suite
...
...
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