Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zodbtools
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
zodbtools
Commits
4a0bb2d5
Commit
4a0bb2d5
authored
Apr 28, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b1552049
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
zodbtools/test/gen_testdata.py
zodbtools/test/gen_testdata.py
+3
-3
No files found.
zodbtools/test/gen_testdata.py
View file @
4a0bb2d5
...
...
@@ -113,7 +113,7 @@ def ext4subj(subj):
d
[
xcookie
]
=
cookie
# shufle extension dict randomly - to likely trigger different ordering on save
keyv
=
d
.
keys
(
)
keyv
=
list
(
d
.
keys
()
)
random
.
shuffle
(
keyv
)
ext
=
{}
for
key
in
keyv
:
...
...
@@ -227,7 +227,7 @@ def _gen_testdb(outfs_path, zext):
break
# delete an object
name
=
random
.
choice
(
root
.
keys
(
))
name
=
random
.
choice
(
list
(
root
.
keys
()
))
obj
=
root
[
name
]
root
[
name
]
=
Object
(
"%s%i*"
%
(
name
,
i
))
# NOTE user/ext are kept empty on purpose - to also test this case
...
...
@@ -276,7 +276,7 @@ def main():
dbname
+=
"_!zext"
gen_testdb
(
"%s.fs"
%
dbname
,
zext
=
zext
)
stor
=
FileStorage
(
"%s.fs"
%
dbname
,
read_only
=
True
)
with
open
(
"%s.zdump.ok"
%
dbname
,
"w"
)
as
f
:
with
open
(
"%s.zdump.ok"
%
dbname
,
"w
b
"
)
as
f
:
zodbdump
(
stor
,
None
,
None
,
out
=
f
)
if
__name__
==
'__main__'
:
...
...
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