fix(client): fixing reverse image search

This commit is contained in:
Scott Lyons 2024-08-11 00:47:48 -07:00
commit 313bd98ae6
2 changed files with 15 additions and 4 deletions

View file

@ -404,6 +404,14 @@ async fn test_creating_posts(client: &SzurubooruClient) {
.expect("Could not search for post by file path");
assert_eq!(matching_posts.results.first().unwrap(), &folly3_post);
info!("Reverse searching");
let matching_posts = client
.request()
.reverse_search_file_path(&folly3_path)
.await
.expect("Could not reverse image search");
assert!(matching_posts.exact_post.is_some());
info!("Testing temporary upload");
let folly4_path = Path::new(env!("CARGO_MANIFEST_DIR")).join("folly4.jpg");
let folly4_temp_upload = client