mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-11 12:30:51 +08:00
language is removed from kernel specs
don't use it when testing kernel spec API
This commit is contained in:
parent
a2575af6a7
commit
e329a79bc8
@ -19,7 +19,6 @@ from IPython.html.tests.launchnotebook import NotebookTestBase, assert_http_erro
|
||||
# break these tests
|
||||
sample_kernel_json = {'argv':['cat', '{connection_file}'],
|
||||
'display_name':'Test kernel',
|
||||
'language':'bash',
|
||||
}
|
||||
|
||||
some_resource = u"The very model of a modern major general"
|
||||
@ -104,7 +103,7 @@ class APITest(NotebookTestBase):
|
||||
|
||||
def test_get_kernelspec(self):
|
||||
spec = self.ks_api.kernel_spec_info('Sample').json() # Case insensitive
|
||||
self.assertEqual(spec['language'], 'bash')
|
||||
self.assertEqual(spec['display_name'], 'Test kernel')
|
||||
|
||||
def test_get_nonexistant_kernelspec(self):
|
||||
with assert_http_error(404):
|
||||
|
Loading…
Reference in New Issue
Block a user