Formatting
This commit is contained in:
@@ -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()
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user