mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-09 11:02:57 +00:00
Basic check of extension added
This commit is contained in:
27
scipy-notebook/test/test_extensions.py
Normal file
27
scipy-notebook/test/test_extensions.py
Normal file
@@ -0,0 +1,27 @@
|
||||
# Copyright (c) Jupyter Development Team.
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
import logging
|
||||
|
||||
import pytest
|
||||
|
||||
LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"extension",
|
||||
[
|
||||
"@bokeh/jupyter_bokeh",
|
||||
"@jupyter-widgets/jupyterlab-manager",
|
||||
"jupyter-matplotlib",
|
||||
],
|
||||
)
|
||||
def test_check_extension(container, extension):
|
||||
"""Basic check of each extension"""
|
||||
LOGGER.info(f"Checking the extension: {extension} ...")
|
||||
c = container.run(
|
||||
tty=True, command=["start.sh", "jupyter", "labextension", "check", extension]
|
||||
)
|
||||
rv = c.wait(timeout=10)
|
||||
logs = c.logs(stdout=True).decode("utf-8")
|
||||
LOGGER.debug(logs)
|
||||
assert rv == 0 or rv["StatusCode"] == 0, f"Extension {extension} check failed"
|
Reference in New Issue
Block a user