Formatting

This commit is contained in:
Connor Johnstone
2026-03-18 15:36:42 -04:00
parent 3159ee51ad
commit a2152cbf8d
6 changed files with 55 additions and 34 deletions

View File

@@ -87,8 +87,16 @@ async fn test_organize_from_directory() {
let money_path = target
.path()
.join("Pink Floyd/The Dark Side of the Moon/06 - Money.mp3");
assert!(time_path.exists(), "Time should exist at {}", time_path.display());
assert!(money_path.exists(), "Money should exist at {}", money_path.display());
assert!(
time_path.exists(),
"Time should exist at {}",
time_path.display()
);
assert!(
money_path.exists(),
"Money should exist at {}",
money_path.display()
);
// Source files should be gone (moved, not copied)
assert!(!source.path().join("song1.mp3").exists());
@@ -124,7 +132,12 @@ async fn test_organize_copy_mode() {
// Source should still exist (copy mode)
assert!(source.path().join("song.mp3").exists());
// Target should exist too
assert!(target.path().join("Pink Floyd/DSOTM/01 - Time.mp3").exists());
assert!(
target
.path()
.join("Pink Floyd/DSOTM/01 - Time.mp3")
.exists()
);
}
#[tokio::test]
@@ -237,8 +250,10 @@ async fn test_organize_missing_metadata() {
assert_eq!(stats.files_organized, 1);
// Should use "Unknown" fallbacks
assert!(target
.path()
.join("Unknown Artist/Unknown Album/00 - Unknown Title.mp3")
.exists());
assert!(
target
.path()
.join("Unknown Artist/Unknown Album/00 - Unknown Title.mp3")
.exists()
);
}