use assert_cmd::assert::OutputAssertExt;
use uv_test::uv_snapshot;
#[test]
fn cache_size_empty_raw() {
let context = uv_test::test_context!("3.12");
context.clean().assert().success();
uv_snapshot!(context.cache_size().arg("--preview"), @"
success: true
exit_code: 0
----- stdout -----
0
----- stderr -----
");
}
#[test]
fn cache_size_with_packages_raw() {
let context = uv_test::test_context!("3.12");
context.pip_install().arg("iniconfig").assert().success();
uv_snapshot!(context.with_filtered_cache_size().filters(), context.cache_size().arg("--preview"), @"
success: true
exit_code: 0
----- stdout -----
[SIZE]
----- stderr -----
");
}
#[test]
fn cache_size_with_packages_human() {
let context = uv_test::test_context!("3.12");
context.pip_install().arg("iniconfig").assert().success();
uv_snapshot!(context.with_filtered_cache_size().filters(), context.cache_size().arg("--preview").arg("--human"), @"
success: true
exit_code: 0
----- stdout -----
[SIZE]
----- stderr -----
");
}