diff --git a/micromamba/tests/test_create.py b/micromamba/tests/test_create.py index 965738d847..2b0e4885a0 100644 --- a/micromamba/tests/test_create.py +++ b/micromamba/tests/test_create.py @@ -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,