Add some typing to tests

This commit is contained in:
Ayaz Salikhov
2022-01-18 19:13:17 +03:00
parent ee77b7831e
commit 2a1316c9ac
24 changed files with 211 additions and 141 deletions

View File

@@ -4,10 +4,14 @@ import logging
from packaging import version
from conftest import TrackedContainer
LOGGER = logging.getLogger(__name__)
def test_python_version(container, python_next_version="3.10"):
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}")
c = container.run(