mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Use shared insta filters (#270)
Internal refactoring for consistency between tests
This commit is contained in:
parent
62c474d880
commit
c6f2dfd727
7 changed files with 43 additions and 73 deletions
8
crates/puffin-cli/tests/common/mod.rs
Normal file
8
crates/puffin-cli/tests/common/mod.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
pub(crate) const BIN_NAME: &str = "puffin";
|
||||
// Not all tests use them and cargo warns otherwise
|
||||
#[allow(dead_code)]
|
||||
pub(crate) const INSTA_FILTERS: &[(&str, &str)] = &[
|
||||
(r"(\d+\.)?\d+(ms|s)", "[TIME]"),
|
||||
(r"# .* pip-compile", "# [BIN_PATH] pip-compile"),
|
||||
(r"--cache-dir .*", "--cache-dir [CACHE_DIR]"),
|
||||
];
|
Loading…
Add table
Add a link
Reference in a new issue