uv/crates/puffin-cli/tests
Zanie Blue fa9f8df396
Fix test snapshot filter when runtime is greater than 1s (#267)
Tests would sometimes flake with this locally e.g. "1.50s" was not
filtered correctly.

Verified with

```diff
diff --git a/crates/puffin-cli/src/commands/pip_compile.rs b/crates/puffin-cli/src/commands/pip_compile.rs
index 0193216..2d6f8af 100644
--- a/crates/puffin-cli/src/commands/pip_compile.rs
+++ b/crates/puffin-cli/src/commands/pip_compile.rs
@@ -150,6 +150,8 @@ pub(crate) async fn pip_compile(
         result => result,
     }?;
 
+    std:🧵:sleep(std::time::Duration::from_secs(1));
+
     let s = if resolution.len() == 1 { "" } else { "s" };
     writeln!(
         printer,
```
2023-11-01 13:15:06 +00:00
..
snapshots Default to puffin venv path to .venv (#261) 2023-10-31 15:24:19 -05:00
add.rs Add CLI tests for add and remove commands (#124) 2023-10-19 01:06:48 +00:00
pip_compile.rs Fix test snapshot filter when runtime is greater than 1s (#267) 2023-11-01 13:15:06 +00:00
pip_sync.rs Fix test snapshot filter when runtime is greater than 1s (#267) 2023-11-01 13:15:06 +00:00
pip_uninstall.rs Improve and test diagnostics for requirements-reading CLI commands (#143) 2023-10-19 18:13:40 -04:00
remove.rs Add CLI tests for add and remove commands (#124) 2023-10-19 01:06:48 +00:00
venv.rs Default to puffin venv path to .venv (#261) 2023-10-31 15:24:19 -05:00