mirror of https://github.com/astral-sh/uv
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:
parent
a27e60a22f
commit
469246d177
|
|
@ -12806,28 +12806,34 @@ fn emit_index_annotation_multiple_indexes() -> Result<()> {
|
||||||
let context = TestContext::new("3.12");
|
let context = TestContext::new("3.12");
|
||||||
|
|
||||||
let requirements_in = context.temp_dir.child("requirements.in");
|
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()
|
uv_snapshot!(context.filters(), context.pip_compile()
|
||||||
.arg("requirements.in")
|
.arg("requirements.in")
|
||||||
.arg("--extra-index-url")
|
.arg("--extra-index-url")
|
||||||
.arg("https://test.pypi.org/simple")
|
.arg("https://test.pypi.org/simple")
|
||||||
.arg("--emit-index-annotation"), @r###"
|
.arg("--emit-index-annotation"), @r"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
----- stdout -----
|
----- stdout -----
|
||||||
# This file was autogenerated by uv via the following command:
|
# This file was autogenerated by uv via the following command:
|
||||||
# uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-index-annotation
|
# 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
|
requests==2.5.4.1
|
||||||
# via -r requirements.in
|
# via -r requirements.in
|
||||||
# from https://test.pypi.org/simple
|
# from https://test.pypi.org/simple
|
||||||
uv==0.1.24
|
|
||||||
# via -r requirements.in
|
|
||||||
# from https://pypi.org/simple
|
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
Resolved 2 packages in [TIME]
|
Resolved 4 packages in [TIME]
|
||||||
"###
|
"
|
||||||
);
|
);
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue