Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
5fd03c12
Commit
5fd03c12
authored
Oct 02, 2015
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_data_notebook bt5: Use getResultValue in testExecuteJupyter to get the 1st matching result
parent
5a0d4baf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
bt5/erp5_data_notebook/TestTemplateItem/portal_components/test.erp5.testExecuteJupyter.py
...ateItem/portal_components/test.erp5.testExecuteJupyter.py
+4
-6
No files found.
bt5/erp5_data_notebook/TestTemplateItem/portal_components/test.erp5.testExecuteJupyter.py
View file @
5fd03c12
...
...
@@ -167,19 +167,17 @@ class TestExecuteJupyter(SecurityTestCase):
)
self
.
tic
()
notebook
_list
=
portal
.
portal_catalog
(
notebook
=
portal
.
portal_catalog
.
getResultValue
(
portal_type
=
'Data Notebook'
,
reference
=
reference
)
notebook_message_search_result
=
portal
.
portal_catalog
(
notebook_message_search_result
=
portal
.
portal_catalog
.
getResultValue
(
portal_type
=
'Data Notebook'
,
reference
=
reference
,
notebook_code
=
python_expression
)
result
=
[
obj
.
getId
()
for
obj
in
notebook_message_search_result
]
self
.
assertIn
(
notebook_list
[
0
].
getId
(),
result
)
self
.
assertEquals
(
notebook
.
getId
(),
notebook_message_search_result
.
getId
())
def
testBaseExecuteJupyterErrorHandling
(
self
):
"""
...
...
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