test_public_api.py 661 B

123456789101112131415161718192021222324252627
  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. from jupyter_client import launcher, connect
  6. import jupyter_client
  7. def test_kms():
  8. for base in ("", "Multi"):
  9. KM = base + "KernelManager"
  10. assert KM in dir(jupyter_client)
  11. def test_kcs():
  12. for base in ("", "Blocking"):
  13. KM = base + "KernelClient"
  14. assert KM in dir(jupyter_client)
  15. def test_launcher():
  16. for name in launcher.__all__:
  17. assert name in dir(jupyter_client)
  18. def test_connect():
  19. for name in connect.__all__:
  20. assert name in dir(jupyter_client)