Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
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
Stefane Fermigier
neo
Commits
2cb7bf1b
Commit
2cb7bf1b
authored
Mar 20, 2017
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qa: do not always use MySQL backend in testPack (neo.tests.zodb)
parent
781b4eb5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
neo/tests/zodb/__init__.py
neo/tests/zodb/__init__.py
+1
-2
neo/tests/zodb/testPack.py
neo/tests/zodb/testPack.py
+0
-3
No files found.
neo/tests/zodb/__init__.py
View file @
2cb7bf1b
...
@@ -25,7 +25,7 @@ else:
...
@@ -25,7 +25,7 @@ else:
class
ZODBTestCase
(
TestCase
):
class
ZODBTestCase
(
TestCase
):
def
setUp
(
self
,
cluster_kw
=
{}
):
def
setUp
(
self
):
super
(
ZODBTestCase
,
self
).
setUp
()
super
(
ZODBTestCase
,
self
).
setUp
()
storages
=
int
(
os
.
getenv
(
'NEO_TEST_ZODB_STORAGES'
,
1
))
storages
=
int
(
os
.
getenv
(
'NEO_TEST_ZODB_STORAGES'
,
1
))
kw
=
{
kw
=
{
...
@@ -34,7 +34,6 @@ class ZODBTestCase(TestCase):
...
@@ -34,7 +34,6 @@ class ZODBTestCase(TestCase):
'partitions'
:
int
(
os
.
getenv
(
'NEO_TEST_ZODB_PARTITIONS'
,
1
)),
'partitions'
:
int
(
os
.
getenv
(
'NEO_TEST_ZODB_PARTITIONS'
,
1
)),
'db_list'
:
[
'%s%u'
%
(
DB_PREFIX
,
i
)
for
i
in
xrange
(
storages
)],
'db_list'
:
[
'%s%u'
%
(
DB_PREFIX
,
i
)
for
i
in
xrange
(
storages
)],
}
}
kw
.
update
(
cluster_kw
)
if
functional
:
if
functional
:
kw
[
'temp_dir'
]
=
self
.
getTempDirectory
()
kw
[
'temp_dir'
]
=
self
.
getTempDirectory
()
self
.
neo
=
NEOCluster
(
**
kw
)
self
.
neo
=
NEOCluster
(
**
kw
)
...
...
neo/tests/zodb/testPack.py
View file @
2cb7bf1b
...
@@ -26,9 +26,6 @@ from . import ZODBTestCase
...
@@ -26,9 +26,6 @@ from . import ZODBTestCase
class
PackableTests
(
ZODBTestCase
,
StorageTestBase
,
class
PackableTests
(
ZODBTestCase
,
StorageTestBase
,
PackableStorageWithOptionalGC
,
PackableUndoStorage
):
PackableStorageWithOptionalGC
,
PackableUndoStorage
):
def
setUp
(
self
):
super
(
PackableTests
,
self
).
setUp
(
cluster_kw
=
{
'adapter'
:
'MySQL'
})
checkPackAllRevisions
=
expectedFailure
()(
checkPackAllRevisions
=
expectedFailure
()(
PackableStorageWithOptionalGC
.
checkPackAllRevisions
)
PackableStorageWithOptionalGC
.
checkPackAllRevisions
)
checkPackUndoLog
=
expectedFailure
()(
PackableUndoStorage
.
checkPackUndoLog
)
checkPackUndoLog
=
expectedFailure
()(
PackableUndoStorage
.
checkPackUndoLog
)
...
...
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