Fix `emit_index_annotation_multiple_indexes` test case (#14277)

uv is taken on Test PyPI now, so the existing test fails
This commit is contained in:
Zanie Blue 2025-06-26 09:58:24 -05:00 committed by GitHub
parent a27e60a22f
commit 469246d177
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 7 deletions

View File

@ -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(())