From b0e0fecc72a7899367af13ce1510a29239fac898 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Wed, 31 Oct 2018 10:09:46 +0000 Subject: [PATCH] Use pyimport/kernel for session API tests --- notebook/services/sessions/tests/test_sessions_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notebook/services/sessions/tests/test_sessions_api.py b/notebook/services/sessions/tests/test_sessions_api.py index 9c551fc792..d8a540ff05 100644 --- a/notebook/services/sessions/tests/test_sessions_api.py +++ b/notebook/services/sessions/tests/test_sessions_api.py @@ -40,7 +40,7 @@ def list(self): def get(self, id): return self._req('GET', id) - def create(self, path, type='notebook', kernel_name='python', kernel_id=None): + def create(self, path, type='notebook', kernel_name='pyimport/kernel', kernel_id=None): body = json.dumps({'path': path, 'type': type, 'kernel': {'name': kernel_name, @@ -49,7 +49,7 @@ def create(self, path, type='notebook', kernel_name='python', kernel_id=None): def create_deprecated(self, path): body = json.dumps({'notebook': {'path': path}, - 'kernel': {'name': 'python', + 'kernel': {'name': 'pyimport/kernel', 'id': 'foo'}}) return self._req('POST', '', body)