Files
docker-stacks/test/test_outdated.py
2020-03-01 08:19:43 +01:00

21 lines
657 B
Python

# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import logging
import pytest
from helpers import CondaPackageHelper
LOGGER = logging.getLogger(__name__)
@pytest.mark.info
def test_outdated_packages(container, specifications_only=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))
LOGGER.info(f"\n{pkg_helper.get_outdated_table()}\n")