Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin
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
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
wendelin
Commits
e8564a38
Commit
e8564a38
authored
May 17, 2018
by
Klaus Wölfel
Committed by
Ivan Tyagov
May 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Data Bucket Stream: adapt test to new api
parent
9ecb2866
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
bt5/erp5_wendelin/TestTemplateItem/portal_components/test.erp5.testWendelin.py
...tTemplateItem/portal_components/test.erp5.testWendelin.py
+4
-4
No files found.
bt5/erp5_wendelin/TestTemplateItem/portal_components/test.erp5.testWendelin.py
View file @
e8564a38
...
...
@@ -241,13 +241,13 @@ class Test(ERP5TypeTestCase):
bin_string
=
"1"
*
100000
key
=
len
(
bucket_stream
)
+
1
bucket_stream
.
insertBucket
(
key
,
bin_string
)
self
.
assertEqual
(
bin_string
,
bucket_stream
.
getBucket
(
key
))
self
.
assertEqual
(
bin_string
,
bucket_stream
.
getBucket
ByKey
(
key
))
# test sequence
self
.
assertEqual
(
1
,
len
(
bucket_stream
))
# test
pop
bucket_stream
.
popBucket
(
key
)
# test
delete bucket by key
bucket_stream
.
delBucketByKey
(
key
)
self
.
assertEqual
(
0
,
len
(
bucket_stream
))
# set many buckets
...
...
@@ -258,5 +258,5 @@ class Test(ERP5TypeTestCase):
self
.
assertEqual
(
range
(
100
),
bucket_stream
.
getKeyList
())
# test as sequence
bucket
=
bucket_stream
.
getBucket
ItemSequence
(
start_key
=
10
,
count
=
1
)[
0
]
bucket
=
bucket_stream
.
getBucket
KeyItemSequenceByKey
(
start_key
=
10
,
count
=
1
)[
0
]
self
.
assertEqual
(
100000
,
bucket
[
1
].
value
)
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