fix: avoid init and writig db file during automatic tests

This commit is contained in:
2026-01-13 07:21:39 +01:00
parent 9a10d75304
commit 33e40fb634

View File

@@ -7,9 +7,7 @@ mod tests {
if fs_path.exists() {
std::fs::remove_file(fs_path).unwrap();
}
let catalog = Catalog::new(&path);
catalog.init().unwrap();
catalog
Catalog::new(&path)
}
#[test]
fn get_by_finds_item() {