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,25 @@
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import logging
from packaging import version # type: ignore
from conftest import TrackedContainer
LOGGER = logging.getLogger(__name__)
def test_python_version(
container: TrackedContainer, python_next_version: str = "3.10"
) -> None:
"""Check that python version is lower than the next version"""
LOGGER.info(f"Checking that python version is lower than {python_next_version}")
logs = container.run_and_wait(
timeout=5,
tty=True,
command=["start.sh", "python", "--version"],
)
actual_python_version = version.parse(logs.split()[1])
assert actual_python_version < version.parse(
python_next_version
), f"Python version shall be lower than {python_next_version}"