pkg_test

Mulled Tests

Functions

get_image_name(path)

Returns name of generated docker image.

get_tests(path)

Extract tests from a built package

test_package(path[, name_override, …])

Tests a built package in a minimal docker container.

Documentation

bioconda_utils.pkg_test.get_image_name(path)[source]

Returns name of generated docker image.

Parameters

path (str) – Path to .tar.by2 package build by conda-build

bioconda_utils.pkg_test.get_tests(path)[source]

Extract tests from a built package

bioconda_utils.pkg_test.test_package(path, name_override=None, channels=('conda-forge', 'local', 'bioconda', 'defaults'), mulled_args='', base_image=None, conda_image='quay.io/dpryan79/mulled_container:latest')[source]

Tests a built package in a minimal docker container.

Parameters
  • path (str) – Path to a .tar.bz2 package built by conda-build

  • name_override (str) – Passed as the –name-override argument to mulled-build

  • channels (list) – List of Conda channels to use. Must include an entry “local” for the local build channel.

  • mulled_args (str) – Mechanism for passing arguments to the mulled-build command. They will be split with shlex.split and passed to the mulled-build command. E.g., mulled_args=”–dry-run –involucro-path /opt/involucro”

  • base_image (None | str) – Specify custom base image. Busybox is used in the default case.

  • conda_image (None | str) – Conda Docker image to install the package with during the mulled based tests.