Skip to content

Commit

Permalink
stabilize output
Browse files Browse the repository at this point in the history
  • Loading branch information
Gankra committed Jan 23, 2025
1 parent a1e3b53 commit 3d043f1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 5 additions & 2 deletions crates/uv/tests/it/pip_compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14676,7 +14676,10 @@ fn many_pyproject_group() -> Result<()> {
"###);

context = new_context()?;
uv_snapshot!(context.filters(), context.pip_compile()
uv_snapshot!(context.filters().into_iter().chain([(
"warning: The dependency-group 'lies' is not defined in pyproject.toml\nwarning: The dependency-group 'lies' is not defined in subdir/pyproject.toml",
"warning: The dependency-group 'lies' is not defined in subdir/pyproject.toml\nwarning: The dependency-group 'lies' is not defined in pyproject.toml",
)]).collect::<Vec<_>>(), context.pip_compile()
.arg("pyproject.toml")
.arg("subdir/pyproject.toml")
.arg("--group").arg("lies"), @r###"
Expand All @@ -14689,8 +14692,8 @@ fn many_pyproject_group() -> Result<()> {
# via project (pyproject.toml)
----- stderr -----
warning: The dependency-group 'lies' is not defined in pyproject.toml
warning: The dependency-group 'lies' is not defined in subdir/pyproject.toml
warning: The dependency-group 'lies' is not defined in pyproject.toml
Resolved 1 package in [TIME]
"###);

Expand Down
8 changes: 6 additions & 2 deletions crates/uv/tests/it/pip_install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8611,7 +8611,11 @@ fn many_pyproject_group() -> Result<()> {
"###);

context = new_context()?;
uv_snapshot!(context.filters(), context.pip_install()

uv_snapshot!(context.filters().into_iter().chain([(
"warning: The dependency-group 'lies' is not defined in pyproject.toml\nwarning: The dependency-group 'lies' is not defined in subdir/pyproject.toml",
"warning: The dependency-group 'lies' is not defined in subdir/pyproject.toml\nwarning: The dependency-group 'lies' is not defined in pyproject.toml",
)]).collect::<Vec<_>>(), context.pip_install()
.arg("-r").arg("pyproject.toml")
.arg("-r").arg("subdir/pyproject.toml")
.arg("--group").arg("lies"), @r###"
Expand All @@ -8620,8 +8624,8 @@ fn many_pyproject_group() -> Result<()> {
----- stdout -----
----- stderr -----
warning: The dependency-group 'lies' is not defined in pyproject.toml
warning: The dependency-group 'lies' is not defined in subdir/pyproject.toml
warning: The dependency-group 'lies' is not defined in pyproject.toml
Resolved 1 package in [TIME]
Prepared 1 package in [TIME]
Installed 1 package in [TIME]
Expand Down

0 comments on commit 3d043f1

Please sign in to comment.