mirror of
https://codeberg.org/demostf/api-client.git
synced 2026-06-03 08:34:15 +02:00
add listing by uploader
This commit is contained in:
parent
65c0f8ebb4
commit
7b484c5753
2 changed files with 71 additions and 0 deletions
|
|
@ -210,3 +210,28 @@ async fn test_get_demo_not_found() {
|
|||
Error::DemoNotFound(999)
|
||||
));
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn test_list_upload() {
|
||||
let client = test_client().await;
|
||||
|
||||
let demos = client
|
||||
.list_uploads(
|
||||
SteamID::from(76561198024494987),
|
||||
ListParams::default().with_order(ListOrder::Ascending),
|
||||
1,
|
||||
)
|
||||
.await
|
||||
.unwrap();
|
||||
assert_eq!(demos.len(), 0);
|
||||
|
||||
let demos = client
|
||||
.list_uploads(
|
||||
SteamID::from(76561198024494988),
|
||||
ListParams::default().with_order(ListOrder::Ascending),
|
||||
1,
|
||||
)
|
||||
.await
|
||||
.unwrap();
|
||||
assert_eq!(demos[0].id, 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue