File: test_public_api.py

package info (click to toggle)
jupyter-client 8.6.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,600 kB
  • sloc: python: 9,025; makefile: 168; sh: 33
file content (28 lines) | stat: -rw-r--r-- 680 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"""Test the jupyter_client public API
"""
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import jupyter_client
from jupyter_client import connect, launcher


def test_kms():
    for base in ("", "Async", "Multi"):
        KM = base + "KernelManager"
        assert KM in dir(jupyter_client)


def test_kcs():
    for base in ("", "Blocking", "Async"):
        KM = base + "KernelClient"
        assert KM in dir(jupyter_client)


def test_launcher():
    for name in launcher.__all__:
        assert name in dir(jupyter_client)


def test_connect():
    for name in connect.__all__:
        assert name in dir(jupyter_client)