Skip to content

Commit

Permalink
Add test parameter to use libsolv parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Hind-M committed Jun 7, 2024
1 parent 79e4db0 commit c5d1648
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions micromamba/tests/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -1185,21 +1185,20 @@ def test_create_with_multi_channels_and_non_existing_subdir(tmp_home, tmp_root_p

@pytest.mark.parametrize("shared_pkgs_dirs", [True], indirect=True)
@pytest.mark.parametrize("spec", ["pandoc", "pandoc=3.1.13"])
def test_create_with_oci_mirrored_channels(tmp_home, tmp_root_prefix, tmp_path, spec):
@pytest.mark.parametrize("parser", ["mamba", "libsolv"])
def test_create_with_oci_mirrored_channels(tmp_home, tmp_root_prefix, tmp_path, spec, parser):
env_name = "myenv"
env_prefix = tmp_root_prefix / "envs" / env_name

rc_file = tmp_path / "config.yaml"
rc_file.write_text(yaml.dump(oci_registry_config))

cmd = ["-n", env_name, spec, "--dry-run", "--json", "-c", "oci_channel"]
if parser == "libsolv":
cmd += ["--no-exp-repodata-parsing"]

res = helpers.create(
"-n",
env_name,
spec,
"--dry-run",
"--json",
"-c",
"oci_channel",
*cmd,
f"--rc-file={rc_file}",
default_channel=False,
no_rc=False,
Expand Down

0 comments on commit c5d1648

Please sign in to comment.