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
Labels
Merge Requests
137
Merge Requests
137
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
bbf07939
Commit
bbf07939
authored
Jul 21, 2022
by
Levin Zimmermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_data_notebook: Test if erp5 has access to erp5 jupyter kernel
parent
0d8242de
Pipeline
#23842
failed with stage
Changes
1
Pipelines
6
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 @
bbf07939
...
...
@@ -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