fix: avoid init and writig db file during automatic tests
This commit is contained in:
@@ -7,9 +7,7 @@ mod tests {
|
|||||||
if fs_path.exists() {
|
if fs_path.exists() {
|
||||||
std::fs::remove_file(fs_path).unwrap();
|
std::fs::remove_file(fs_path).unwrap();
|
||||||
}
|
}
|
||||||
let catalog = Catalog::new(&path);
|
Catalog::new(&path)
|
||||||
catalog.init().unwrap();
|
|
||||||
catalog
|
|
||||||
}
|
}
|
||||||
#[test]
|
#[test]
|
||||||
fn get_by_finds_item() {
|
fn get_by_finds_item() {
|
||||||
|
|||||||
Reference in New Issue
Block a user