From 2a93ebb93498d65f8d02b6b2ea679f7fa6650781 Mon Sep 17 00:00:00 2001 From: Kemal Akkoyun Date: Wed, 25 Sep 2024 21:31:11 +0200 Subject: [PATCH] Update tests for windows Signed-off-by: Kemal Akkoyun --- crates/uv/tests/run.rs | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/crates/uv/tests/run.rs b/crates/uv/tests/run.rs index 4a06492eb090b..f30c536cfe4d0 100644 --- a/crates/uv/tests/run.rs +++ b/crates/uv/tests/run.rs @@ -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 @@ -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 ` 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(()) }