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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastien Robin
erp5
Commits
2e67044a
Commit
2e67044a
authored
Aug 30, 2022
by
Levin Zimmermann
Browse files
Options
Browse Files
Download
Plain Diff
erp5_data_notebook: Test if erp5 has access to erp5 jupyter kernel
See merge request
nexedi/erp5!1655
parents
6e68dc54
bbf07939
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
bt5/erp5_data_notebook/TestTemplateItem/portal_components/test.erp5.testExecuteJupyter.py
...ateItem/portal_components/test.erp5.testExecuteJupyter.py
+14
-1
No files found.
bt5/erp5_data_notebook/TestTemplateItem/portal_components/test.erp5.testExecuteJupyter.py
View file @
2e67044a
...
...
@@ -31,6 +31,7 @@ from Products.ERP5Type.tests.utils import createZODBPythonScript, removeZODBPyth
import
time
import
json
import
jupyter_client
import
base64
import
random
import
string
...
...
@@ -1053,4 +1054,16 @@ print os.path
'sympy'
,
]
imported_egg_list
=
[
egg
for
egg
in
egg_list
if
self
.
checkEgg
(
egg
)]
self
.
assertEqual
(
set
(
egg_list
),
set
(
imported_egg_list
))
\ No newline at end of file
self
.
assertEqual
(
set
(
egg_list
),
set
(
imported_egg_list
))
def
testERP5hasAccessToERP5Kernel
(
self
):
'''
Test whether the erp5 specific jupyter kernel is accessible from within erp5.
'''
try
:
jupyter_client
.
kernelspec
.
KernelSpecManager
().
get_kernel_spec
(
'erp5'
)
except
jupyter_client
.
kernelspec
.
NoSuchKernel
:
has_access_to_erp5_kernel
=
False
else
:
has_access_to_erp5_kernel
=
True
self
.
assertTrue
(
has_access_to_erp5_kernel
)
\ No newline at end of file
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