Skip to content

Commit

Permalink
Uncomment test (#3641)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hind-M authored Dec 2, 2024
1 parent c809abc commit 3f49aa5
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions micromamba/tests/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,19 +114,18 @@ def test_lockfile(tmp_home, tmp_root_prefix, tmp_path):
assert any(package["name"] == "zlib" and package["version"] == "1.2.11" for package in packages)


# TODO: uncomment when https://github.com/mamba-org/mamba/pull/3286 is merged
# @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"]
#
# 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)
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"]

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)
Expand Down

0 comments on commit 3f49aa5

Please sign in to comment.