From 6f38ec6a959c22dedc4aad66442183c80f4c50c4 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Tue, 1 Aug 2023 06:43:49 +0000 Subject: [PATCH] test for lab extensions --- integration-tests/test_extensions.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/integration-tests/test_extensions.py b/integration-tests/test_extensions.py index 2fb22a60..676fb890 100644 --- a/integration-tests/test_extensions.py +++ b/integration-tests/test_extensions.py @@ -21,21 +21,21 @@ def test_serverextensions(): assert e in proc.stderr.decode() -def test_nbextensions(): +def test_labextensions(): """ - Validate nbextensions we want are installed & enabled + Validate JupyterLab extensions we want are installed & enabled """ - # jupyter-nbextension writes to stdout and stderr weirdly + # jupyter-labextension writes to stdout and stderr weirdly proc = subprocess.run( - ["/opt/tljh/user/bin/jupyter-nbextension", "list", "--sys-prefix"], + ["/opt/tljh/user/bin/jupyter-labextension", "list"], stderr=subprocess.PIPE, stdout=subprocess.PIPE, ) extensions = [ - "jupyter_resource_usage/main", - # This is what ipywidgets nbextension is called - "jupyter-js-widgets/extension", + "@jupyter-server/resource-usage", + # This is what ipywidgets lab extension is called + "@jupyter-widgets/jupyterlab-manager", ] for e in extensions: