mirror of
https://codeberg.org/demostf/api-client.git
synced 2026-06-03 08:34:15 +02:00
handle demo not found in get
This commit is contained in:
parent
d27188b16d
commit
65c0f8ebb4
2 changed files with 20 additions and 2 deletions
|
|
@ -200,3 +200,13 @@ async fn test_set_url_invalid_key() {
|
|||
.await;
|
||||
assert!(matches!(res.unwrap_err(), Error::InvalidApiKey));
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn test_get_demo_not_found() {
|
||||
let client = test_client().await;
|
||||
|
||||
assert!(matches!(
|
||||
dbg!(client.get(999).await.unwrap_err()),
|
||||
Error::DemoNotFound(999)
|
||||
));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue