tests: reduce a test to only one package per conda channel

This commit is contained in:
Erik Sundell
2024-09-04 16:04:25 +02:00
parent 7a491e403c
commit 9111b73cee
2 changed files with 8 additions and 3 deletions

View File

@@ -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

View File

@@ -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"])