mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-08 18:44:06 +00:00
Better tests directory structure (#2231)
This commit is contained in:
34
tests/image_specific_tests/scipy-notebook/test_extensions.py
Normal file
34
tests/image_specific_tests/scipy-notebook/test_extensions.py
Normal file
@@ -0,0 +1,34 @@
|
||||
# Copyright (c) Jupyter Development Team.
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
import logging
|
||||
|
||||
import pytest # type: ignore
|
||||
|
||||
from tests.utils.tracked_container import TrackedContainer
|
||||
|
||||
LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="Not yet compliant with JupyterLab 4")
|
||||
@pytest.mark.parametrize(
|
||||
"extension",
|
||||
[
|
||||
"@bokeh/jupyter_bokeh",
|
||||
"@jupyter-widgets/jupyterlab-manager",
|
||||
"jupyter-matplotlib",
|
||||
],
|
||||
)
|
||||
def test_check_extension(container: TrackedContainer, extension: str) -> None:
|
||||
"""Basic check of each extension
|
||||
|
||||
The list of installed extensions can be obtained through this command:
|
||||
|
||||
$ jupyter labextension list
|
||||
|
||||
"""
|
||||
LOGGER.info(f"Checking the extension: {extension} ...")
|
||||
container.run_and_wait(
|
||||
timeout=10,
|
||||
tty=True,
|
||||
command=["jupyter", "labextension", "check", extension],
|
||||
)
|
Reference in New Issue
Block a user