Skip to content

Commit

Permalink
test for lab extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed Aug 1, 2023
1 parent b6ee97c commit 6f38ec6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions integration-tests/test_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6f38ec6

Please sign in to comment.