Add test for jupyterhub labextension

This commit is contained in:
yuvipanda
2018-08-13 16:47:35 -06:00
parent 8f966ce8c9
commit 214d8e9e81

View File

@@ -1,3 +1,4 @@
import os
import subprocess
@@ -39,4 +40,12 @@ def test_nbextensions():
assert '{} \x1b[32m enabled \x1b[0m'.format(e) in proc.stdout.decode()
# Ensure we have 'OK' messages in our stdout, to make sure everything is importable
proc.stderr.decode() == ' - Validating: \x1b[32mOK\x1b[0m\n' * len(extensions)
proc.stderr.decode() == ' - Validating: \x1b[32mOK\x1b[0m\n' * len(extensions)
def test_labextensions():
"""
Validate labextensions we want installed
"""
# Currently we only install jupyterhub
assert os.path.exists('/opt/tljh/user/bin/jupyter-labhub')