Update tests
This commit is contained in:
parent
d62c05abdf
commit
a3b296fefb
|
@ -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(())
|
||||
}
|
||||
|
|
|
@ -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?;
|
||||
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user