pinakes-core: add plugin integration tests and test fixtures
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: If4372ea33b93306486170353f9edf4a76a6a6964
This commit is contained in:
parent
61ebc6824c
commit
7d3c2052c2
6 changed files with 404 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue