Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
Commits
e8a6fc84
Commit
e8a6fc84
authored
Nov 10, 2015
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_data_notebook bt5: Refactor test with striping the result from function call
parent
3b63a9ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bt5/erp5_data_notebook/TestTemplateItem/portal_components/test.erp5.testExecuteJupyter.py
...ateItem/portal_components/test.erp5.testExecuteJupyter.py
+2
-2
No files found.
bt5/erp5_data_notebook/TestTemplateItem/portal_components/test.erp5.testExecuteJupyter.py
View file @
e8a6fc84
...
...
@@ -381,7 +381,7 @@ import sys
# Call Base_displayImage from inside of Base_runJupyter
jupyter_code
=
"""
image = context.portal_catalog.getResultValue(portal_type='Image',reference=
%s
)
image = context.portal_catalog.getResultValue(portal_type='Image',reference=
'%s'
)
context.Base_displayImage(image_object=image)
"""
%
reference
...
...
@@ -391,5 +391,5 @@ context.Base_displayImage(image_object=image)
old_local_variable_dict
=
local_variable_dict
)
self
.
assertEquals
(
result
[
'result_string'
],
base64
.
b64encode
(
data
))
self
.
assertEquals
(
result
[
'result_string'
]
.
rstrip
()
,
base64
.
b64encode
(
data
))
self
.
assertEquals
(
result
[
'mime_type'
],
'image/png'
)
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