From 58181c967170f685e61a15034326b47eb313f4ba Mon Sep 17 00:00:00 2001 From: Will Dampier Date: Fri, 2 Sep 2022 14:47:25 -0400 Subject: [PATCH] adjusted integration test to call new hook --- integration-tests/plugins/simplest/tljh_simplest.py | 8 ++++++++ integration-tests/test_simplest_plugin.py | 1 + 2 files changed, 9 insertions(+) diff --git a/integration-tests/plugins/simplest/tljh_simplest.py b/integration-tests/plugins/simplest/tljh_simplest.py index a134083..12a64b4 100644 --- a/integration-tests/plugins/simplest/tljh_simplest.py +++ b/integration-tests/plugins/simplest/tljh_simplest.py @@ -8,6 +8,14 @@ from tljh.hooks import hookimpl def tljh_extra_user_conda_packages(): return [ "hypothesis", + "csvtk" + ] + +@hookimpl +def tljh_extra_user_conda_channels(): + return [ + "conda-forge", + "bioconda" ] diff --git a/integration-tests/test_simplest_plugin.py b/integration-tests/test_simplest_plugin.py index eebff27..e5a3b04 100644 --- a/integration-tests/test_simplest_plugin.py +++ b/integration-tests/test_simplest_plugin.py @@ -33,6 +33,7 @@ def test_conda_packages(): Test extra user conda packages are installed """ subprocess.check_call([f"{USER_ENV_PREFIX}/bin/python3", "-c", "import hypothesis"]) + subprocess.check_call([f"{USER_ENV_PREFIX}/bin/csvtk", "cat", "--help"]) def test_config_hook():