Fix tests and improve memories date error log

This commit is contained in:
Cameron
2025-12-19 14:20:51 -05:00
parent e3ccc123d0
commit df94010d21
5 changed files with 24 additions and 7 deletions

View File

@@ -819,12 +819,12 @@ impl Handler<RefreshThumbnailsMessage> for StreamActor {
#[cfg(test)]
mod tests {
use super::*;
use crate::database::DbError;
use std::collections::HashMap;
use std::env;
use std::fs::File;
use super::*;
struct FakeFileSystem {
files: HashMap<String, Vec<String>>,
err: bool,
@@ -955,6 +955,14 @@ mod tests {
fn get_camera_makes(&mut self) -> Result<Vec<(String, i64)>, crate::database::DbError> {
Ok(Vec::new())
}
fn update_file_path(&mut self, old_path: &str, new_path: &str) -> Result<(), DbError> {
Ok(())
}
fn get_all_file_paths(&mut self) -> Result<Vec<String>, DbError> {
Ok(Vec::new())
}
}
mod api {