From 2fe9912333c6d125fd0291bc7b0ffab30e8822ae Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Sun, 25 Feb 2024 15:04:14 +0100 Subject: [PATCH] tests: test pip install plugin with no-dependency package This is a simplification to help ensure we don't run into issues like below because requests gets installed via pip. ``` RemoveError: 'requests' is a dependency of conda and cannot be removed from conda's operating environment. ``` --- integration-tests/plugins/simplest/tljh_simplest.py | 2 +- integration-tests/test_simplest_plugin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/integration-tests/plugins/simplest/tljh_simplest.py b/integration-tests/plugins/simplest/tljh_simplest.py index ff433f8..eda8c1d 100644 --- a/integration-tests/plugins/simplest/tljh_simplest.py +++ b/integration-tests/plugins/simplest/tljh_simplest.py @@ -12,7 +12,7 @@ def tljh_extra_user_conda_packages(): @hookimpl def tljh_extra_user_pip_packages(): - return ["django"] + return ["simplejson"] @hookimpl diff --git a/integration-tests/test_simplest_plugin.py b/integration-tests/test_simplest_plugin.py index 9c2337b..9830c47 100644 --- a/integration-tests/test_simplest_plugin.py +++ b/integration-tests/test_simplest_plugin.py @@ -20,7 +20,7 @@ def test_tljh_extra_user_conda_packages(): def test_tljh_extra_user_pip_packages(): - subprocess.check_call([f"{USER_ENV_PREFIX}/bin/python3", "-c", "import django"]) + subprocess.check_call([f"{USER_ENV_PREFIX}/bin/python3", "-c", "import simplejson"]) def test_tljh_extra_hub_pip_packages():