mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Fix emit_index_annotation_multiple_indexes
test case
uv is taken on Test PyPI now, so the existing test fails
This commit is contained in:
parent
4b348512c2
commit
1888dbb0a8
1 changed files with 13 additions and 7 deletions
|
@ -12806,28 +12806,34 @@ fn emit_index_annotation_multiple_indexes() -> Result<()> {
|
|||
let context = TestContext::new("3.12");
|
||||
|
||||
let requirements_in = context.temp_dir.child("requirements.in");
|
||||
requirements_in.write_str("uv\nrequests")?;
|
||||
requirements_in.write_str("httpcore\nrequests")?;
|
||||
|
||||
uv_snapshot!(context.filters(), context.pip_compile()
|
||||
.arg("requirements.in")
|
||||
.arg("--extra-index-url")
|
||||
.arg("https://test.pypi.org/simple")
|
||||
.arg("--emit-index-annotation"), @r###"
|
||||
.arg("--emit-index-annotation"), @r"
|
||||
success: true
|
||||
exit_code: 0
|
||||
----- stdout -----
|
||||
# This file was autogenerated by uv via the following command:
|
||||
# uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-index-annotation
|
||||
certifi==2016.8.8
|
||||
# via httpcore
|
||||
# from https://test.pypi.org/simple
|
||||
h11==0.14.0
|
||||
# via httpcore
|
||||
# from https://pypi.org/simple
|
||||
httpcore==1.0.4
|
||||
# via -r requirements.in
|
||||
# from https://pypi.org/simple
|
||||
requests==2.5.4.1
|
||||
# via -r requirements.in
|
||||
# from https://test.pypi.org/simple
|
||||
uv==0.1.24
|
||||
# via -r requirements.in
|
||||
# from https://pypi.org/simple
|
||||
|
||||
----- stderr -----
|
||||
Resolved 2 packages in [TIME]
|
||||
"###
|
||||
Resolved 4 packages in [TIME]
|
||||
"
|
||||
);
|
||||
|
||||
Ok(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue