Update tests

This commit is contained in:
Joel Wachsler 2022-08-06 01:43:44 +00:00
parent d62c05abdf
commit a3b296fefb
3 changed files with 4 additions and 4 deletions

View File

@ -11,10 +11,9 @@ struct Api {}
async fn main() -> Result<()> {
let api = Api::login(BASE_URL, USERNAME, PASSWORD).await?;
let _ = api.search().delete(1).send().await?;
let _ = api.search().delete(1).await?;
let _ = api.search().plugins().await?;
let _ = api.search().plugins().await?;
let _ = api.search().install_plugin("https://raw.githubusercontent.com/qbittorrent/search-plugins/master/nova3/engines/legittorrents.py").send().await?;
let _ = api.search().install_plugin(&["https://raw.githubusercontent.com/qbittorrent/search-plugins/master/nova3/engines/legittorrents.py"]).await?;
Ok(())
}

View File

@ -11,7 +11,7 @@ struct Api {}
async fn main() -> Result<()> {
let api = Api::login(BASE_URL, USERNAME, PASSWORD).await?;
let _ = api.search().install_plugin("https://raw.githubusercontent.com/qbittorrent/search-plugins/master/nova3/engines/legittorrents.py").await?;
let _ = api.search().install_plugin(&["https://raw.githubusercontent.com/qbittorrent/search-plugins/master/nova3/engines/legittorrents.py"]).await?;
// just check that the deserialization works
let _ = api.search().plugins().await?;

View File

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