mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
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. ```
This commit is contained in:
@@ -12,7 +12,7 @@ def tljh_extra_user_conda_packages():
|
||||
|
||||
@hookimpl
|
||||
def tljh_extra_user_pip_packages():
|
||||
return ["django"]
|
||||
return ["simplejson"]
|
||||
|
||||
|
||||
@hookimpl
|
||||
|
||||
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user