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"); }