Skip to content

Commit

Permalink
Update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Jan 17, 2025
1 parent f5d0149 commit 2751a5e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions crates/uv/tests/it/pip_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,19 @@ fn missing_venv() -> Result<()> {
exit_code: 2
----- stdout -----
----- stderr -----
error: Failed to inspect Python interpreter from active virtual environment at `.venv/bin/python3`
Caused by: Python interpreter not found at `[VENV]/bin/python3`
"###);

assert!(predicates::path::missing().eval(&context.venv));

// If not "active", we hint to create one
uv_snapshot!(context.filters(), context.pip_sync().arg("requirements.txt").env_remove("VIRTUAL_ENV"), @r###"
success: false
exit_code: 2
----- stdout -----
----- stderr -----
error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
"###);
Expand Down

0 comments on commit 2751a5e

Please sign in to comment.