mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Add test for jupyterhub labextension
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
|
|
||||||
@@ -39,4 +40,12 @@ def test_nbextensions():
|
|||||||
assert '{} \x1b[32m enabled \x1b[0m'.format(e) in proc.stdout.decode()
|
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
|
# 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')
|
||||||
Reference in New Issue
Block a user