Skip to content

Commit

Permalink
test: Add non-regression python test
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
  • Loading branch information
jjerphan committed Oct 2, 2024
1 parent e519cb0 commit af428e2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions micromamba/tests/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -1332,3 +1332,15 @@ def test_create_package_with_non_url_char(tmp_home, tmp_root_prefix):
res = helpers.create("-n", "myenv", "-c", "conda-forge", "x264>=1!0", "--json")

assert any(pkg["name"] == "x264" for pkg in res["actions"]["LINK"])


# @pytest.mark.timeout(20)
@pytest.mark.parametrize("shared_pkgs_dirs", [True], indirect=True)
def test_parsable_env_history_with_metadata(tmp_home, tmp_root_prefix, tmp_path):
env_prefix = tmp_path / "env-micromamba-list"

res = helpers.create("-p", env_prefix, 'pandas[version=">=0.25.2,<3"]', "--json")
assert res["success"]

# Must not hang
helpers.umamba_list("-p", env_prefix, "--json")

0 comments on commit af428e2

Please sign in to comment.