pinakes-core: add plugin integration tests and test fixtures

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: If4372ea33b93306486170353f9edf4a76a6a6964
This commit is contained in:
raf 2026-03-08 14:56:31 +03:00
commit 7d3c2052c2
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
6 changed files with 404 additions and 2 deletions

View file

@ -407,13 +407,13 @@ async fn test_import_with_dedup() {
std::fs::write(&file_path, "hello world").unwrap();
// First import
let result1 = pinakes_core::import::import_file(&storage, &file_path)
let result1 = pinakes_core::import::import_file(&storage, &file_path, None)
.await
.unwrap();
assert!(!result1.was_duplicate);
// Second import of same file
let result2 = pinakes_core::import::import_file(&storage, &file_path)
let result2 = pinakes_core::import::import_file(&storage, &file_path, None)
.await
.unwrap();
assert!(result2.was_duplicate);