mirror of
https://github.com/astral-sh/uv
synced 2026-01-08 23:23:26 -05:00
Filter prefixes from scenario snapshots to improve readability (#779)
I'm a _little_ unsure since this could be confusing but the prefixes can be pretty long and this is much easier to read.
This commit is contained in:
@@ -32,8 +32,12 @@ fn {{normalized_name}}() -> Result<()> {
|
||||
let cache_dir = assert_fs::TempDir::new()?;
|
||||
let venv = create_venv_py312(&temp_dir, &cache_dir);
|
||||
|
||||
// In addition to the standard filters, remove the scenario prefix
|
||||
let mut filters = INSTA_FILTERS.to_vec();
|
||||
filters.push((r"{{prefix}}-", ""));
|
||||
|
||||
insta::with_settings!({
|
||||
filters => INSTA_FILTERS.to_vec()
|
||||
filters => filters
|
||||
}, {
|
||||
assert_cmd_snapshot!(Command::new(get_cargo_bin(BIN_NAME))
|
||||
.arg("pip-install")
|
||||
|
||||
Reference in New Issue
Block a user