Skip to content

Commit

Permalink
Allow for strange base_url and channel with micromamba2
Browse files Browse the repository at this point in the history
  • Loading branch information
maresb committed Sep 28, 2024
1 parent e27990b commit a1290bc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_conda_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -2594,13 +2594,20 @@ def test_fake_conda_env(conda_exe: str, conda_lock_yaml: Path):
expected_channel = "conda-forge"
expected_base_url = "https://conda.anaconda.org/conda-forge"
if is_micromamba(conda_exe):
dist_name = env_package["dist_name"]
assert env_package["base_url"] in {
f"{expected_base_url}/{platform}",
expected_base_url,
# <https://github.com/mamba-org/mamba/issues/3480>
f"{expected_base_url}/{platform}/{dist_name}.conda",
f"{expected_base_url}/{platform}/{dist_name}.tar.bz2",
}
assert env_package["channel"] in {
f"{expected_channel}/{platform}",
expected_channel,
# <https://github.com/mamba-org/mamba/issues/3480>
f"{expected_channel}/{platform}/{dist_name}.conda",
f"{expected_channel}/{platform}/{dist_name}.tar.bz2",
}
else:
assert env_package["base_url"] == expected_base_url
Expand Down

0 comments on commit a1290bc

Please sign in to comment.