Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
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
Carlos Ramos Carreño
neoppod
Commits
b83668e7
Commit
b83668e7
authored
Feb 15, 2023
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qa: update a test for recent ZConfig
parent
6153a752
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
neo/tests/threaded/testConfig.py
neo/tests/threaded/testConfig.py
+3
-2
No files found.
neo/tests/threaded/testConfig.py
View file @
b83668e7
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
import
unittest
import
unittest
from
contextlib
import
contextmanager
from
contextlib
import
contextmanager
from
ZConfig
import
Configuration
Syntax
Error
from
ZConfig
import
ConfigurationError
from
ZODB.config
import
databaseFromString
from
ZODB.config
import
databaseFromString
from
..
import
Patch
from
..
import
Patch
from
.
import
ClientApplication
,
NEOThreadedTest
,
with_cluster
from
.
import
ClientApplication
,
NEOThreadedTest
,
with_cluster
...
@@ -53,7 +53,8 @@ class ConfigTests(NEOThreadedTest):
...
@@ -53,7 +53,8 @@ class ConfigTests(NEOThreadedTest):
kw
=
self
.
dummy_required
.
copy
()
kw
=
self
.
dummy_required
.
copy
()
valid
=
[
'false'
,
'true'
,
'zlib'
,
'zlib=9'
]
valid
=
[
'false'
,
'true'
,
'zlib'
,
'zlib=9'
]
for
kw
[
'compress'
]
in
'9'
,
'best'
,
'zlib=0'
,
'zlib=100'
:
for
kw
[
'compress'
]
in
'9'
,
'best'
,
'zlib=0'
,
'zlib=100'
:
self
.
assertRaises
(
ConfigurationSyntaxError
,
databaseFromDict
,
**
kw
)
# BBB: DataConversionError since ZConfig 3.4.0
self
.
assertRaises
(
ConfigurationError
,
databaseFromDict
,
**
kw
)
for
compress
in
valid
:
for
compress
in
valid
:
with
self
.
_db
(
cluster
,
compress
=
compress
)
as
db
:
with
self
.
_db
(
cluster
,
compress
=
compress
)
as
db
:
self
.
assertEqual
((
0
,
0
,
''
),
db
.
storage
.
app
.
compress
(
''
))
self
.
assertEqual
((
0
,
0
,
''
),
db
.
storage
.
app
.
compress
(
''
))
...
...
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