mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
update kernelspec test
to expect Python display name
This commit is contained in:
parent
97e5c4cc4b
commit
67abf3ddab
@ -102,7 +102,7 @@ class APITest(NotebookTestBase):
|
||||
return s['name'] == 'sample' and s['spec']['display_name'] == 'Test kernel'
|
||||
|
||||
def is_default_kernelspec(s):
|
||||
return s['name'] == NATIVE_KERNEL_NAME and s['spec']['display_name'].startswith("IPython")
|
||||
return s['name'] == NATIVE_KERNEL_NAME and s['spec']['display_name'].startswith("Python")
|
||||
|
||||
assert any(is_sample_kernelspec(s) for s in specs.values()), specs
|
||||
assert any(is_default_kernelspec(s) for s in specs.values()), specs
|
||||
|
Loading…
Reference in New Issue
Block a user