Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
j178 committed Jul 27, 2024
1 parent 846a11e commit cb60e22
Showing 1 changed file with 7 additions and 27 deletions.
34 changes: 7 additions & 27 deletions crates/uv/tests/pip_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,16 @@ fn list_editable_only() {
uv_snapshot!(filters, list_command(&context)
.arg("--editable")
.arg("--exclude-editable"), @r###"
success: true
exit_code: 0
success: false
exit_code: 2
----- stdout -----
----- stderr -----
error: the argument '--editable' cannot be used with '--exclude-editable'
Usage: uv pip list --cache-dir [CACHE_DIR] --editable
For more information, try '--help'.
"###
);
}
Expand Down Expand Up @@ -367,19 +372,6 @@ fn list_format_json() {
----- stderr -----
"###
);

uv_snapshot!(filters, list_command(&context)
.arg("--format=json")
.arg("--editable")
.arg("--exclude-editable"), @r###"
success: true
exit_code: 0
----- stdout -----
[]
----- stderr -----
"###
);
}

#[test]
Expand Down Expand Up @@ -451,18 +443,6 @@ fn list_format_freeze() {
----- stderr -----
"###
);

uv_snapshot!(filters, list_command(&context)
.arg("--format=freeze")
.arg("--editable")
.arg("--exclude-editable"), @r###"
success: true
exit_code: 0
----- stdout -----
----- stderr -----
"###
);
}

#[test]
Expand Down

0 comments on commit cb60e22

Please sign in to comment.