Skip to content

Commit 9ea8186

Browse files
committed
Fix tests
1 parent 8769858 commit 9ea8186

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed

crates/uv/tests/it/cache_clean.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ fn clean_package_pypi() -> Result<()> {
7979
----- stderr -----
8080
DEBUG uv [VERSION] ([COMMIT] DATE)
8181
DEBUG Removing dangling cache entry: [CACHE_DIR]/archive-v0/[ENTRY]
82-
Removed 12 files for iniconfig ([SIZE])
82+
Removed 12 files ([SIZE])
8383
"###);
8484

8585
// Assert that the `.rkyv` file is removed for `iniconfig`.
@@ -152,7 +152,7 @@ fn clean_package_index() -> Result<()> {
152152
----- stderr -----
153153
DEBUG uv [VERSION] ([COMMIT] DATE)
154154
DEBUG Removing dangling cache entry: [CACHE_DIR]/archive-v0/[ENTRY]
155-
Removed 12 files for iniconfig ([SIZE])
155+
Removed 12 files ([SIZE])
156156
"###);
157157

158158
// Assert that the `.rkyv` file is removed for `iniconfig`.

crates/uv/tests/it/pip_sync.rs

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,7 +1410,7 @@ fn install_url_source_dist_cached() -> Result<()> {
14101410
----- stdout -----
14111411
14121412
----- stderr -----
1413-
Removed 19 files for source-distribution ([SIZE])
1413+
Removed 19 files ([SIZE])
14141414
"###
14151415
);
14161416

@@ -1505,7 +1505,7 @@ fn install_git_source_dist_cached() -> Result<()> {
15051505
----- stdout -----
15061506
15071507
----- stderr -----
1508-
No cache entries found for werkzeug
1508+
No cache entries found
15091509
"###
15101510
);
15111511

@@ -1605,7 +1605,7 @@ fn install_registry_source_dist_cached() -> Result<()> {
16051605
----- stdout -----
16061606
16071607
----- stderr -----
1608-
Removed 20 files for source-distribution ([SIZE])
1608+
Removed 20 files ([SIZE])
16091609
"###
16101610
);
16111611

@@ -1702,7 +1702,7 @@ fn install_path_source_dist_cached() -> Result<()> {
17021702
----- stdout -----
17031703
17041704
----- stderr -----
1705-
Removed 19 files for source-distribution ([SIZE])
1705+
Removed 19 files ([SIZE])
17061706
"###
17071707
);
17081708

@@ -1787,13 +1787,10 @@ fn install_path_built_dist_cached() -> Result<()> {
17871787

17881788
let filters = if cfg!(windows) {
17891789
// We do not display sizes on Windows
1790-
[(
1791-
"Removed 1 file for tomli",
1792-
"Removed 1 file for tomli ([SIZE])",
1793-
)]
1794-
.into_iter()
1795-
.chain(context.filters())
1796-
.collect()
1790+
[("Removed 1 file", "Removed 1 file ([SIZE])")]
1791+
.into_iter()
1792+
.chain(context.filters())
1793+
.collect()
17971794
} else {
17981795
context.filters()
17991796
};
@@ -1804,7 +1801,7 @@ fn install_path_built_dist_cached() -> Result<()> {
18041801
----- stdout -----
18051802
18061803
----- stderr -----
1807-
Removed 11 files for tomli ([SIZE])
1804+
Removed 11 files ([SIZE])
18081805
"###
18091806
);
18101807

@@ -1892,7 +1889,7 @@ fn install_url_built_dist_cached() -> Result<()> {
18921889
----- stdout -----
18931890
18941891
----- stderr -----
1895-
Removed 43 files for tqdm ([SIZE])
1892+
Removed 43 files ([SIZE])
18961893
"###
18971894
);
18981895

0 commit comments

Comments
 (0)