Skip to content

Commit

Permalink
Update tests for windows
Browse files Browse the repository at this point in the history
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
  • Loading branch information
kakkoyun committed Sep 25, 2024
1 parent 3c1be57 commit 1c3691e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions crates/uv/tests/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ fn run_no_args() -> Result<()> {
})?;

// Run without specifying any argunments.
#[cfg(not(windows))]
uv_snapshot!(context.filters(), context.run(), @r###"
success: true
exit_code: 0
Expand All @@ -239,6 +240,35 @@ fn run_no_args() -> Result<()> {
+ foo==1.0.0 (from file://[TEMP_DIR]/)
"###);

#[cfg(windows)]
uv_snapshot!(context.filters(), context.run(), @r###"
success: true
exit_code: 0
----- stdout -----
Provide a command or script to invoke with `uv run <command>` or `uv run script.py`.
The following scripts are available:
activate.bat
activate.csh
activate.fish
activate.nu
activate.ps1
activate_this.py
deactivate.bat
pydoc.bat
python.exe
pythonw.exe
See `uv run --help` for more information.
----- stderr -----
Resolved 1 package in [TIME]
Prepared 1 package in [TIME]
Installed 1 package in [TIME]
+ foo==1.0.0 (from file://[TEMP_DIR]/)
"###);

Ok(())
}

Expand Down

0 comments on commit 1c3691e

Please sign in to comment.