mirror of
https://codeberg.org/demostf/api-test.git
synced 2026-06-03 17:44:07 +02:00
test for listing with unknown user id
This commit is contained in:
parent
0337df8834
commit
5b750c7dd7
3 changed files with 333 additions and 326 deletions
653
Cargo.lock
generated
653
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "api-test"
|
name = "api-test"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
authors = ["Robin Appelman <robin@icewind.nl>"]
|
authors = ["Robin Appelman <robin@icewind.nl>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
|
@ -11,7 +11,7 @@ dotenv = "0.15"
|
||||||
color-eyre = "0.6"
|
color-eyre = "0.6"
|
||||||
colored = "2"
|
colored = "2"
|
||||||
tokio = { version = "1", features = ["macros"] }
|
tokio = { version = "1", features = ["macros"] }
|
||||||
tf-demo-parser = "0.3"
|
tf-demo-parser = "0.4"
|
||||||
bitbuffer = "0.10"
|
bitbuffer = "0.10"
|
||||||
|
|
||||||
[profile.dev.package.tf-demo-parser]
|
[profile.dev.package.tf-demo-parser]
|
||||||
|
|
|
||||||
12
src/main.rs
12
src/main.rs
|
|
@ -294,6 +294,18 @@ async fn main() -> Result<()> {
|
||||||
})
|
})
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
test.step("list unknown player filter", |client| async move {
|
||||||
|
let list = client
|
||||||
|
.list(
|
||||||
|
ListParams::default().with_players(vec![76561197992320000]),
|
||||||
|
1,
|
||||||
|
)
|
||||||
|
.await?;
|
||||||
|
assert_eq(list.len(), 0)?;
|
||||||
|
Ok(())
|
||||||
|
})
|
||||||
|
.await?;
|
||||||
|
|
||||||
test.step("list player and map filter", |client| async move {
|
test.step("list player and map filter", |client| async move {
|
||||||
let list = client
|
let list = client
|
||||||
.list(
|
.list(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue