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 import subprocess
@@ -40,3 +41,11 @@ def test_nbextensions():
# Ensure we have 'OK' messages in our stdout, to make sure everything is importable # 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')