mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-12 12:32:58 +00:00
Add some typing to tests
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
import logging
|
||||
|
||||
import pytest
|
||||
from conftest import TrackedContainer
|
||||
|
||||
from helpers import CondaPackageHelper
|
||||
|
||||
@@ -11,10 +12,10 @@ LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@pytest.mark.info
|
||||
def test_outdated_packages(container, specifications_only=True):
|
||||
def test_outdated_packages(container: TrackedContainer, requested_only: bool = True):
|
||||
"""Getting the list of updatable packages"""
|
||||
LOGGER.info(f"Checking outdated packages in {container.image_name} ...")
|
||||
pkg_helper = CondaPackageHelper(container)
|
||||
pkg_helper.check_updatable_packages(specifications_only)
|
||||
LOGGER.info(pkg_helper.get_outdated_summary(specifications_only))
|
||||
pkg_helper.check_updatable_packages(requested_only)
|
||||
LOGGER.info(pkg_helper.get_outdated_summary(requested_only))
|
||||
LOGGER.info(f"\n{pkg_helper.get_outdated_table()}\n")
|
||||
|
Reference in New Issue
Block a user