Add search tests

This commit is contained in:
Joel Wachsler 2022-07-14 13:07:50 +00:00
parent f1c3656e6e
commit 4a0db615a5
4 changed files with 1728 additions and 27 deletions

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,20 @@
mod common;
use anyhow::Result;
use common::*;
use qbittorrent_web_api_gen::QBittorrentApiGen;
#[derive(QBittorrentApiGen)]
struct Api {}
#[tokio::main]
async fn main() -> Result<()> {
let api = Api::login(BASE_URL, USERNAME, PASSWORD).await?;
let _ = api.search().plugins().await?;
let _ = api.search().results(1).send().await?;
let _ = api.search().delete(1).await?;
let _ = api.search().install_plugin("https://raw.githubusercontent.com/qbittorrent/search-plugins/master/nova3/engines/legittorrents.py").await?;
Ok(())
}

View File

@ -20,5 +20,5 @@ fn tests() {
t.pass("tests/add_torrent.rs");
t.pass("tests/another_struct_name.rs");
t.pass("tests/access_impl_types.rs");
// t.pass("tests/search_types.rs");
t.pass("tests/search_types.rs");
}

File diff suppressed because it is too large Load Diff