Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Laurent S
erp5
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):
...
@@ -167,19 +167,17 @@ class TestExecuteJupyter(SecurityTestCase):
)
)
self
.
tic
()
self
.
tic
()
notebook
_list
=
portal
.
portal_catalog
(
notebook
=
portal
.
portal_catalog
.
getResultValue
(
portal_type
=
'Data Notebook'
,
portal_type
=
'Data Notebook'
,
reference
=
reference
reference
=
reference
)
)
notebook_message_search_result
=
portal
.
portal_catalog
(
notebook_message_search_result
=
portal
.
portal_catalog
.
getResultValue
(
portal_type
=
'Data Notebook'
,
portal_type
=
'Data Notebook'
,
reference
=
reference
,
notebook_code
=
python_expression
notebook_code
=
python_expression
)
)
self
.
assertEquals
(
notebook
.
getId
(),
notebook_message_search_result
.
getId
())
result
=
[
obj
.
getId
()
for
obj
in
notebook_message_search_result
]
self
.
assertIn
(
notebook_list
[
0
].
getId
(),
result
)
def
testBaseExecuteJupyterErrorHandling
(
self
):
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