Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate local:: specs issues #401

Merged
merged 8 commits into from
Jan 10, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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",
isuruf marked this conversation as resolved.
Show resolved Hide resolved
env=env,
)
assert process.returncode == 0