mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
test refactor: add comment about python/conda/mamba
This commit is contained in:
@@ -108,6 +108,14 @@ def _specifier(version):
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
|
# - distro: None, mambaforge, or miniforge
|
||||||
|
# - distro_version: https://github.com/conda-forge/miniforge/releases
|
||||||
|
# - expected_versions: versions of python, conda, and mamba in user env
|
||||||
|
#
|
||||||
|
# TLJH of a specific version comes with a specific distro_version as
|
||||||
|
# declared in installer.py's MAMBAFORGE_VERSION variable, and it comes with
|
||||||
|
# python, conda, and mamba of certain versions.
|
||||||
|
#
|
||||||
"distro, distro_version, expected_versions",
|
"distro, distro_version, expected_versions",
|
||||||
[
|
[
|
||||||
# No previous install, start fresh
|
# No previous install, start fresh
|
||||||
@@ -135,9 +143,9 @@ def _specifier(version):
|
|||||||
"mambaforge",
|
"mambaforge",
|
||||||
"4.10.3-7",
|
"4.10.3-7",
|
||||||
{
|
{
|
||||||
|
"python": "3.9.*",
|
||||||
"conda": "4.10.3",
|
"conda": "4.10.3",
|
||||||
"mamba": "0.16.0",
|
"mamba": "0.16.0",
|
||||||
"python": "3.9.*",
|
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
# simulate missing mamba
|
# simulate missing mamba
|
||||||
@@ -147,9 +155,9 @@ def _specifier(version):
|
|||||||
"miniforge",
|
"miniforge",
|
||||||
"4.10.3-7",
|
"4.10.3-7",
|
||||||
{
|
{
|
||||||
|
"python": "3.9.*",
|
||||||
"conda": "4.10.3",
|
"conda": "4.10.3",
|
||||||
"mamba": ">=1.1.0",
|
"mamba": ">=1.1.0",
|
||||||
"python": "3.9.*",
|
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
# too-old Python (3.7), abort
|
# too-old Python (3.7), abort
|
||||||
|
|||||||
Reference in New Issue
Block a user