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
Ekaterina
wendelin
Commits
d9a3fc10
Commit
d9a3fc10
authored
Feb 21, 2020
by
Ekaterina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_wendelin: add check of content in test_03_DataArray
parent
018f09db
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
bt5/erp5_wendelin/TestTemplateItem/portal_components/test.erp5.testWendelin.py
...tTemplateItem/portal_components/test.erp5.testWendelin.py
+6
-0
bt5/erp5_wendelin/TestTemplateItem/portal_components/test.erp5.testWendelin.xml
...TemplateItem/portal_components/test.erp5.testWendelin.xml
+2
-1
No files found.
bt5/erp5_wendelin/TestTemplateItem/portal_components/test.erp5.testWendelin.py
View file @
d9a3fc10
...
...
@@ -34,6 +34,7 @@ import string
import
random
import
urllib
from
Products.ERP5Type.Log
import
log
def
getRandomString
():
return
'test_%s'
%
''
.
join
([
random
.
choice
(
string
.
ascii_letters
+
string
.
digits
)
\
...
...
@@ -235,6 +236,11 @@ class Test(ERP5TypeTestCase):
path
=
'/erp5/data_array_module/'
+
data_array
.
getId
()
publish_kw
=
dict
(
user
=
'ERP5TypeTestCase'
,
env
=
{
'RANGE'
:
'bytes=0-'
},
request_method
=
'GET'
)
response
=
self
.
publish
(
path
,
**
publish_kw
)
array
=
data_array
.
getArray
()
data
=
array
[:].
view
(
'<b'
).
reshape
((
-
1
,))[
0
:
1000
].
tobytes
()
self
.
assertEquals
(
response
.
headers
[
"content-range"
],
'bytes 0-999/1000'
)
self
.
assertEquals
(
response
.
body
,
data
)
self
.
assertEquals
(
int
(
response
.
headers
[
"content-length"
]),
data_array
.
getSize
())
def
test_04_DataBucket
(
self
):
...
...
bt5/erp5_wendelin/TestTemplateItem/portal_components/test.erp5.testWendelin.xml
View file @
d9a3fc10
...
...
@@ -46,7 +46,8 @@
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple>
<string>
W: 64, 35: Unused variable \'data_product\' (unused-variable)
</string>
<string>
W: 65, 35: Unused variable \'data_product\' (unused-variable)
</string>
<string>
W: 37, 0: Unused log imported from Products.ERP5Type.Log (unused-import)
</string>
</tuple>
</value>
</item>
...
...
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