Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt committed Sep 26, 2024
1 parent 93a8720 commit c8c2dab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/uv/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async fn resolve_script_target(
.tempfile()?;

eprintln!(
"Downloading remote script to {}",
"Downloading remote script to: {}",
temp_file.path().display().cyan()
);

Expand Down
5 changes: 5 additions & 0 deletions crates/uv/tests/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2136,13 +2136,18 @@ fn run_remote_pep723_script() {
r"(?m)^Reading inline script metadata from:.*\.py$",
"Reading inline script metadata from: [TEMP_PATH].py",
));
filters.push((
r"(?m)^Downloading remote script to:.*\.py$",
"Downloading remote script to: [TEMP_PATH].py",
));
uv_snapshot!(filters, context.run().arg("https://raw.githubusercontent.com/astral-sh/uv/df45b9ac2584824309ff29a6a09421055ad730f6/scripts/uv-run-remote-script-test.py").arg("CI"), @r###"
success: true
exit_code: 0
----- stdout -----
Hello CI, from uv!
----- stderr -----
Downloading remote script to: [TEMP_PATH].py
Reading inline script metadata from: [TEMP_PATH].py
Resolved 4 packages in [TIME]
Prepared 4 packages in [TIME]
Expand Down

0 comments on commit c8c2dab

Please sign in to comment.