Commit b302c754 authored by Jérome Perrin's avatar Jérome Perrin

Merge remote-tracking branch 'upstream/master' into zope4py2

parents 1c4d476e 2e67044a
...@@ -31,6 +31,7 @@ from Products.ERP5Type.tests.utils import createZODBPythonScript, removeZODBPyth ...@@ -31,6 +31,7 @@ from Products.ERP5Type.tests.utils import createZODBPythonScript, removeZODBPyth
import time import time
import json import json
import jupyter_client
import base64 import base64
import random import random
import string import string
...@@ -1053,4 +1054,16 @@ print os.path ...@@ -1053,4 +1054,16 @@ print os.path
'sympy', 'sympy',
] ]
imported_egg_list = [egg for egg in egg_list if self.checkEgg(egg)] imported_egg_list = [egg for egg in egg_list if self.checkEgg(egg)]
self.assertEqual(set(egg_list), set(imported_egg_list)) self.assertEqual(set(egg_list), set(imported_egg_list))
\ No newline at end of file
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment