Debian Codegraph @

tests/test_public_api.py

raw
1 """Test the jupyter_client public API"""
2
3 # Copyright (c) Jupyter Development Team.
4 # Distributed under the terms of the Modified BSD License.
5 import jupyter_client
6 from jupyter_client import connect, launcher
7
8
9 def test_kms():
10 for base in ("", "Async", "Multi"):
11 KM = base + "KernelManager"
12 assert KM in dir(jupyter_client)
13
14
15 def test_kcs():
16 for base in ("", "Blocking", "Async"):
17 KM = base + "KernelClient"
18 assert KM in dir(jupyter_client)
19
20
21 def test_launcher():
22 for name in launcher.__all__:
23 assert name in dir(jupyter_client)
24
25
26 def test_connect():
27 for name in connect.__all__:
28 assert name in dir(jupyter_client)