Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
e97cb43f
Commit
e97cb43f
authored
May 18, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ac028106
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
wcfs/internal/xbtree_test.py
wcfs/internal/xbtree_test.py
+5
-1
No files found.
wcfs/internal/xbtree_test.py
View file @
e97cb43f
...
...
@@ -31,6 +31,7 @@ from ZODB.MappingStorage import MappingStorage
from
ZODB
import
DB
from
persistent
import
Persistent
import
transaction
from
pytest
import
raises
inf
=
float
(
'inf'
)
...
...
@@ -453,6 +454,9 @@ def test_restructure():
R
(
z
,
'T/B'
)
assert
crack_btree
(
z
)
==
(
BTREE_EMPTY
,
[],
[])
with
raises
(
ValueError
,
match
=
"new keys != old keys"
):
R
(
z
,
'T/B1'
)
# ø -> T/T/B (don't - we don't emit topologies with empty buckets for
# tests since ZODB breaks on them)
"""
...
...
@@ -499,7 +503,7 @@ def test_restructure():
R
(
z
,
'T/B1'
)
assert
crack_btree
(
z
)
==
(
BTREE_ONE
,
((
1
,
X
[
1
]),),
None
)
R
(
z
,
'T/T/B1'
)
1
/
0
# tree with one not-yet committed bucket
...
...
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