Run tests on all children images

This commit is contained in:
Ayaz Salikhov
2022-02-17 16:34:15 +00:00
parent b6fdd5dae6
commit 6d04f39de6
49 changed files with 147 additions and 88 deletions

View File

@@ -0,0 +1,33 @@
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import logging
import pytest # type: ignore
from conftest import TrackedContainer
LOGGER = logging.getLogger(__name__)
@pytest.mark.parametrize(
"package_manager, version_arg",
[
("apt", "--version"),
("conda", "--version"),
("mamba", "--version"),
("npm", "--version"),
("pip", "--version"),
],
)
def test_package_manager(
container: TrackedContainer, package_manager: str, version_arg: tuple[str, ...]
) -> None:
"""Test the notebook start-notebook script"""
LOGGER.info(
f"Test that the package manager {package_manager} is working properly ..."
)
container.run_and_wait(
timeout=5,
tty=True,
command=["start.sh", "bash", "-c", f"{package_manager} {version_arg}"],
)