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
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
Léo-Paul Géneau
wendelin
Commits
47b0ba53
Commit
47b0ba53
authored
Jun 28, 2022
by
Levin Zimmermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_wendelin: Add test for setArrayDtypeNames
parent
e066dca3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
bt5/erp5_wendelin/TestTemplateItem/portal_components/test.erp5.testWendelin.py
...tTemplateItem/portal_components/test.erp5.testWendelin.py
+15
-1
No files found.
bt5/erp5_wendelin/TestTemplateItem/portal_components/test.erp5.testWendelin.py
View file @
47b0ba53
...
@@ -618,4 +618,18 @@ data_bucket_stream.insertBucket(1, "1" * 100000)
...
@@ -618,4 +618,18 @@ data_bucket_stream.insertBucket(1, "1" * 100000)
result = [x for x in data_bucket_stream.getBucketIndexKeySequenceByIndex()]
result = [x for x in data_bucket_stream.getBucketIndexKeySequenceByIndex()]
"""
"""
self
.
createAndRunScript
(
code
)
self
.
createAndRunScript
(
code
)
\ No newline at end of file
def
test_15_setArrayDtypeNames
(
self
):
"""
Test Data Array method "setArrayDtypeNames"
"""
data_array
=
self
.
portal
.
data_array_module
.
newContent
(
portal_type
=
"Data Array"
)
self
.
addCleanup
(
self
.
_removeDocument
,
data_array
)
dtype_name0
,
dtype_name1
=
"my_dtype_name"
,
"my_new_dtype_name"
data_array
.
initArray
((
3
,),
np
.
dtype
([(
dtype_name0
,
np
.
float64
)]))
self
.
assertEqual
(
data_array
.
getArrayDtypeNames
(),
(
dtype_name0
,))
data_array
.
setArrayDtypeNames
((
dtype_name1
,))
self
.
assertEqual
(
data_array
.
getArrayDtypeNames
(),
(
dtype_name1
,))
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