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
Labels
Merge Requests
5
Merge Requests
5
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
zodbtools
Commits
dbfea935
Commit
dbfea935
authored
Jul 16, 2024
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*: Cosmetics
Fix noticed typos, remove shebang from py source not intended to be executed.
parent
7f45f6da
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
zodbtools/test/conftest.py
zodbtools/test/conftest.py
+1
-1
zodbtools/test/gen_testdata.py
zodbtools/test/gen_testdata.py
+2
-2
zodbtools/test/testutil.py
zodbtools/test/testutil.py
+0
-1
No files found.
zodbtools/test/conftest.py
View file @
dbfea935
...
@@ -70,7 +70,7 @@ class ZTestData(object):
...
@@ -70,7 +70,7 @@ class ZTestData(object):
# - when ZODB does not have txn.extension_bytes support
# - when ZODB does not have txn.extension_bytes support
# - when ZODB might have txn.extension_bytes support
# - when ZODB might have txn.extension_bytes support
#
#
# in a test, zext should be used as
as
follows:
# in a test, zext should be used as follows:
#
#
# def test_something(zext):
# def test_something(zext):
# # bytes for an extension dict
# # bytes for an extension dict
...
...
zodbtools/test/gen_testdata.py
View file @
dbfea935
...
@@ -166,7 +166,7 @@ def ext4subj(subj):
...
@@ -166,7 +166,7 @@ def ext4subj(subj):
xcookie
=
"x-cookie"
+
rand
.
choice
(
alnum
)
xcookie
=
"x-cookie"
+
rand
.
choice
(
alnum
)
d
[
xcookie
]
=
cookie
d
[
xcookie
]
=
cookie
# shufle extension dict randomly - to likely trigger different ordering on save
# shuf
f
le extension dict randomly - to likely trigger different ordering on save
keyv
=
keys
(
d
)
keyv
=
keys
(
d
)
rand
.
shuffle
(
keyv
)
rand
.
shuffle
(
keyv
)
ext
=
{}
ext
=
{}
...
@@ -323,7 +323,7 @@ def gen_testdb(outfs_path, zext=True):
...
@@ -323,7 +323,7 @@ def gen_testdb(outfs_path, zext=True):
# create a cyclic object -> object reference
# create a cyclic object -> object reference
# pretty=zpickledis used not to handle this well because in ZODB pickle the reference
# pretty=zpickledis used not to handle this well because in ZODB pickle the reference
# refer
e
s to referred type by GET that is prepared by PUT in class part of the pickle.
# refers to referred type by GET that is prepared by PUT in class part of the pickle.
name
=
rand
.
choice
(
keys
(
root
))
name
=
rand
.
choice
(
keys
(
root
))
obj
=
root
[
name
]
obj
=
root
[
name
]
obj
.
value
=
obj
obj
.
value
=
obj
...
...
zodbtools/test/testutil.py
View file @
dbfea935
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
# Copyright (C) 2019-2022 Nexedi SA and Contributors.
# Copyright (C) 2019-2022 Nexedi SA and Contributors.
# Kirill Smelkov <kirr@nexedi.com>
# Kirill Smelkov <kirr@nexedi.com>
...
...
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