-
Notifications
You must be signed in to change notification settings - Fork 43
/
test_echo.py
36 lines (24 loc) · 992 Bytes
/
test_echo.py
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
29
30
31
32
33
34
35
36
"""
Example use of jupyter_kernel_test, with tests for the default python3 kernel
(IPyKernel). This includes all the currently available tests.
"""
import unittest
import jupyter_kernel_test as jkt
class EchoKernelTests(jkt.KernelTests):
# REQUIRED
# the kernel to be tested
# this is the normally the name of the directory containing the
# kernel.json file - you should be able to do
# `jupyter console --kernel KERNEL_NAME`
kernel_name = "echo"
# Everything else is OPTIONAL
# the name of the language the kernel executes
# checked against language_info.name in kernel_info_reply
language_name = "echo"
# the normal file extension (including the leading dot) for this language
# checked against language_info.file_extension in kernel_info_reply
file_extension = ".txt"
# code which should write the exact string `hello, world` to STDOUT
code_hello_world = "hello, world"
if __name__ == "__main__":
unittest.main()