From 048fae6f4315a9fd73fe0140908ab86f44de1792 Mon Sep 17 00:00:00 2001 From: Ben Mares Date: Sat, 28 Sep 2024 23:50:46 +0200 Subject: [PATCH] Allow for strange base_url and channel with micromamba2 --- tests/test_conda_lock.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_conda_lock.py b/tests/test_conda_lock.py index 287537a8..5d0c442a 100644 --- a/tests/test_conda_lock.py +++ b/tests/test_conda_lock.py @@ -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, + # + 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, + # + f"{expected_channel}/{platform}/{dist_name}.conda", + f"{expected_channel}/{platform}/{dist_name}.tar.bz2", } else: assert env_package["base_url"] == expected_base_url