From a3b296fefbf1fb9b3a7fd68cd17939d5d93d9fd7 Mon Sep 17 00:00:00 2001 From: Joel Wachsler Date: Sat, 6 Aug 2022 01:43:44 +0000 Subject: [PATCH] Update tests --- qbittorrent-web-api-gen/tests/access_search.rs | 5 ++--- qbittorrent-web-api-gen/tests/search_types.rs | 2 +- qbittorrent-web-api-gen/tests/tests.rs | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qbittorrent-web-api-gen/tests/access_search.rs b/qbittorrent-web-api-gen/tests/access_search.rs index 504dbc3..231d578 100644 --- a/qbittorrent-web-api-gen/tests/access_search.rs +++ b/qbittorrent-web-api-gen/tests/access_search.rs @@ -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(()) } diff --git a/qbittorrent-web-api-gen/tests/search_types.rs b/qbittorrent-web-api-gen/tests/search_types.rs index 4a21fbd..9601bb5 100644 --- a/qbittorrent-web-api-gen/tests/search_types.rs +++ b/qbittorrent-web-api-gen/tests/search_types.rs @@ -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?; diff --git a/qbittorrent-web-api-gen/tests/tests.rs b/qbittorrent-web-api-gen/tests/tests.rs index 873c7ba..c7dba58 100644 --- a/qbittorrent-web-api-gen/tests/tests.rs +++ b/qbittorrent-web-api-gen/tests/tests.rs @@ -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"); }