mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-07 10:04:03 +00:00
23 lines
742 B
Python
23 lines
742 B
Python
# Copyright (c) Jupyter Development Team.
|
|
# Distributed under the terms of the Modified BSD License.
|
|
|
|
import logging
|
|
|
|
import pytest # type: ignore
|
|
from conftest import TrackedContainer
|
|
from package_helper import CondaPackageHelper
|
|
|
|
LOGGER = logging.getLogger(__name__)
|
|
|
|
|
|
@pytest.mark.info
|
|
def test_outdated_packages(
|
|
container: TrackedContainer, requested_only: bool = True
|
|
) -> None:
|
|
"""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(requested_only)
|
|
LOGGER.info(pkg_helper.get_outdated_summary(requested_only))
|
|
LOGGER.info(f"\n{pkg_helper.get_outdated_table()}\n")
|