Skip to content

Commit e753a07

Browse files
committed
test_envkernel.py: add some docstrings
1 parent efa802e commit e753a07

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test_envkernel.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def install(d, argv, name='testkernel'):
3838
return get(d, name)
3939

4040
def get(d, name):
41+
"""From an installed kernel, return dict with properties for testing."""
4142
dir_ = pjoin(d, 'share/jupyter/kernels/', name)
4243
kernel = json.load(open(pjoin(dir_, 'kernel.json')))
4344
return {
@@ -48,6 +49,8 @@ def get(d, name):
4849
}
4950

5051
def run(d, kern, execvp=lambda _argv0, argv: 0):
52+
"""Start envkernel in "run" mode to see if it can run successfully.
53+
"""
5154
connection_file = pjoin(d, 'connection.json')
5255
open(connection_file, 'w').write(TEST_CONNECTION_FILE)
5356
# Do basic tests

0 commit comments

Comments
 (0)