Add search tests
This commit is contained in:
parent
f1c3656e6e
commit
4a0db615a5
File diff suppressed because one or more lines are too long
20
qbittorrent-web-api-gen/tests/search_types.rs
Normal file
20
qbittorrent-web-api-gen/tests/search_types.rs
Normal 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(())
|
||||
}
|
|
@ -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
Loading…
Reference in New Issue
Block a user