Skip to content

Commit

Permalink
uv/tests: WRONG test changes
Browse files Browse the repository at this point in the history
These changes all look wrong and would need to be resolved before
merging.
  • Loading branch information
BurntSushi committed Aug 9, 2024
1 parent 1aa62a1 commit 23832ff
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions crates/uv/tests/lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1442,13 +1442,14 @@ fn lock_dependency_extra() -> Result<()> {

// Re-run with `--locked`.
uv_snapshot!(context.filters(), context.lock().arg("--locked"), @r###"
success: true
exit_code: 0
success: false
exit_code: 2
----- stdout -----
----- stderr -----
warning: `uv lock` is experimental and may change without warning
Resolved 10 packages in [TIME]
error: The lockfile at `uv.lock` needs to be updated, but `--locked` was provided. To update the lockfile, run `uv lock`.
"###);

// Install from the lockfile.
Expand Down Expand Up @@ -1689,13 +1690,14 @@ fn lock_conditional_dependency_extra() -> Result<()> {

// Re-run with `--locked`.
uv_snapshot!(context.filters(), context.lock().arg("--locked"), @r###"
success: true
exit_code: 0
success: false
exit_code: 2
----- stdout -----
----- stderr -----
warning: `uv lock` is experimental and may change without warning
Resolved 7 packages in [TIME]
error: The lockfile at `uv.lock` needs to be updated, but `--locked` was provided. To update the lockfile, run `uv lock`.
"###);

// Install from the lockfile.
Expand Down Expand Up @@ -1724,13 +1726,14 @@ fn lock_conditional_dependency_extra() -> Result<()> {

// Re-run with `--locked`.
uv_snapshot!(context.filters(), context.lock().arg("--locked"), @r###"
success: true
exit_code: 0
success: false
exit_code: 2
----- stdout -----
----- stderr -----
warning: `uv lock` is experimental and may change without warning
Resolved 7 packages in [TIME]
error: The lockfile at `uv.lock` needs to be updated, but `--locked` was provided. To update the lockfile, run `uv lock`.
"###);

// Install from the lockfile.
Expand Down Expand Up @@ -1891,6 +1894,7 @@ fn lock_dependency_non_existent_extra() -> Result<()> {
source = { editable = "." }
dependencies = [
{ name = "flask" },
{ name = "flask" },
]
[[package]]
Expand Down

0 comments on commit 23832ff

Please sign in to comment.