Skip to content

Commit

Permalink
add reproducer test
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Dec 11, 2023
1 parent 6d61b0f commit 912e187
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions tests/test_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,3 +298,31 @@ def test_http_server_auth_token_in_defaults(http_server_auth_token):
condarc.write_text(condarc_contents)
else:
condarc.unlink()


def test_local_spec():
"https://github.com/conda/conda-libmamba-solver/issues/398"
env = os.environ.copy()
env["CONDA_BLD_PATH"] = str(DATA / "mamba_repo")
process = conda_subprocess(
"create",
"-p",
_get_temp_prefix(use_restricted_unicode=on_win),
"--dry-run",
"--solver=libmamba",
"--channel=local",
"test-package",
env=env,
)
assert process.returncode == 0

process = conda_subprocess(
"create",
"-p",
_get_temp_prefix(use_restricted_unicode=on_win),
"--dry-run",
"--solver=libmamba",
"local::test-package",
env=env,
)
assert process.returncode == 0

0 comments on commit 912e187

Please sign in to comment.