Uncomment no more failing test (#3767)

This commit is contained in:
Hind-M 2025-01-27 11:05:00 +01:00 committed by GitHub
parent 7fa748f53e
commit ee82188844
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 11 deletions

View File

@ -193,19 +193,18 @@ def test_pip_git_https_lockfile(tmp_home, tmp_root_prefix, tmp_path):
)
# TODO Uncomment this after merging https://github.com/mamba-org/mamba/pull/3764
# @pytest.mark.parametrize("shared_pkgs_dirs", [True], indirect=True)
# def test_lockfile_online(tmp_home, tmp_root_prefix, tmp_path):
# env_prefix = tmp_path / "myenv"
# spec_file = (
# "https://raw.githubusercontent.com/mamba-org/mamba/main/micromamba/tests/test-env-lock.yaml"
# )
@pytest.mark.parametrize("shared_pkgs_dirs", [True], indirect=True)
def test_lockfile_online(tmp_home, tmp_root_prefix, tmp_path):
env_prefix = tmp_path / "myenv"
spec_file = (
"https://raw.githubusercontent.com/mamba-org/mamba/main/micromamba/tests/test-env-lock.yaml"
)
# res = helpers.create("-p", env_prefix, "-f", spec_file, "--json")
# assert res["success"]
res = helpers.create("-p", env_prefix, "-f", spec_file, "--json")
assert res["success"]
# packages = helpers.umamba_list("-p", env_prefix, "--json")
# assert any(package["name"] == "zlib" and package["version"] == "1.2.11" for package in packages)
packages = helpers.umamba_list("-p", env_prefix, "--json")
assert any(package["name"] == "zlib" and package["version"] == "1.2.11" for package in packages)
@pytest.mark.parametrize("shared_pkgs_dirs", [True], indirect=True)