test(filename_audit): seed library 2 before its image_exif row (#151)

run_audit_skips_disabled_and_offline_libraries inserted an image_exif
row for library 2, which migrations never create, tripping the
image_exif.library_id foreign key. Insert the libraries row first so
the suite is green on master again.

Also fix the cmp_owned clippy warning in the filename_audit bin.

Closes #151

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cameron CordesandClaude Opus 5.5 committed 2026-09-29 21:31:53 -04:00
1 parent 053314137c
commit 8a5a7c19d7
2 files changed
+15 -1

No files matched your search

+1 -1
View File
@@ -56,7 +56,7 @@ fn main() -> anyhow::Result<()> {
&& let base = PathBuf::from(base)
&& !libraries
.iter()
.any(|l| PathBuf::from(&l.root_path) == base)
.any(|l| std::path::Path::new(&l.root_path) == base)
{
eprintln!(
"note: BASE_PATH ({}) does not match any library root; auditing the library table",