From 9111b73cee33d31735376d4110595e763469110f Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Wed, 4 Sep 2024 16:04:25 +0200 Subject: [PATCH] tests: reduce a test to only one package per conda channel --- integration-tests/plugins/simplest/tljh_simplest.py | 4 +++- integration-tests/test_simplest_plugin.py | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/integration-tests/plugins/simplest/tljh_simplest.py b/integration-tests/plugins/simplest/tljh_simplest.py index c3f978d..f5ceca4 100644 --- a/integration-tests/plugins/simplest/tljh_simplest.py +++ b/integration-tests/plugins/simplest/tljh_simplest.py @@ -7,7 +7,9 @@ from tljh.hooks import hookimpl @hookimpl def tljh_extra_user_conda_packages(): - return ["hypothesis", "csvtk", "tqdm"] + # tqdm installs from the conda-forge channel (https://conda-forge.org/packages/) + # csvtk installs from the bioconda channel (https://bioconda.github.io/conda-package_index.html) + return ["tqdm", "csvtk"] @hookimpl diff --git a/integration-tests/test_simplest_plugin.py b/integration-tests/test_simplest_plugin.py index ce01d0e..2c65049 100644 --- a/integration-tests/test_simplest_plugin.py +++ b/integration-tests/test_simplest_plugin.py @@ -29,9 +29,12 @@ def test_tljh_extra_hub_pip_packages(): def test_conda_packages(): """ - Test extra user conda packages are installed + Test extra user conda packages are installed from multiple channels. + + - tqdm installs from the conda-forge channel (https://conda-forge.org/packages/) + - csvtk installs from the bioconda channel (https://bioconda.github.io/conda-package_index.html) """ - subprocess.check_call([f"{USER_ENV_PREFIX}/bin/python3", "-c", "import hypothesis"]) + subprocess.check_call([f"{USER_ENV_PREFIX}/bin/python3", "-c", "import tqdm"]) subprocess.check_call([f"{USER_ENV_PREFIX}/bin/csvtk", "cat", "--help"])