fix(api): removed missing properties from personalstats
This commit is contained in:
parent
e5a766b893
commit
1c9b4123c3
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -2294,7 +2294,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "torn-api"
|
name = "torn-api"
|
||||||
version = "1.6.4"
|
version = "1.6.5"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bon",
|
"bon",
|
||||||
"bytes",
|
"bytes",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "torn-api"
|
name = "torn-api"
|
||||||
version = "1.6.4"
|
version = "1.6.5"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "Auto-generated bindings for the v2 torn api"
|
description = "Auto-generated bindings for the v2 torn api"
|
||||||
license-file = { workspace = true }
|
license-file = { workspace = true }
|
||||||
|
|
|
@ -13928,8 +13928,7 @@
|
||||||
"awards",
|
"awards",
|
||||||
"merits_bought",
|
"merits_bought",
|
||||||
"refills",
|
"refills",
|
||||||
"donator_days",
|
"donator_days"
|
||||||
"ranked_war_wins"
|
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"activity": {
|
"activity": {
|
||||||
|
@ -13991,10 +13990,6 @@
|
||||||
"donator_days": {
|
"donator_days": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
},
|
|
||||||
"ranked_war_wins": {
|
|
||||||
"type": "integer",
|
|
||||||
"format": "int32"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "object"
|
"type": "object"
|
||||||
|
|
|
@ -9,8 +9,9 @@ pub(super) mod test {
|
||||||
use crate::{
|
use crate::{
|
||||||
executor::{ExecutorExt, ReqwestClient},
|
executor::{ExecutorExt, ReqwestClient},
|
||||||
models::{
|
models::{
|
||||||
faction_selection_name::FactionSelectionNameVariant, AttackCode,
|
faction_selection_name::FactionSelectionNameVariant,
|
||||||
PersonalStatsCategoryEnum, PersonalStatsStatName, UserListEnum,
|
user_selection_name::UserSelectionNameVariant, AttackCode, PersonalStatsCategoryEnum,
|
||||||
|
PersonalStatsStatName, UserListEnum, UserPersonalStatsPopular,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -918,6 +919,25 @@ pub(super) mod test {
|
||||||
.unwrap();
|
.unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[tokio::test]
|
||||||
|
async fn user_personalstats_popular() {
|
||||||
|
let client = test_client().await;
|
||||||
|
|
||||||
|
let resp = client
|
||||||
|
.user()
|
||||||
|
.for_selections(|b| {
|
||||||
|
b.selections([UserSelectionNameVariant::Personalstats])
|
||||||
|
.cat(PersonalStatsCategoryEnum::Popular)
|
||||||
|
})
|
||||||
|
.await
|
||||||
|
.unwrap();
|
||||||
|
|
||||||
|
assert!(resp
|
||||||
|
.user_personal_stats_response()
|
||||||
|
.unwrap()
|
||||||
|
.is_user_personal_stats_popular());
|
||||||
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn user_personalstats_for_id() {
|
async fn user_personalstats_for_id() {
|
||||||
let client = test_client().await;
|
let client = test_client().await;
|
||||||
|
|
Loading…
Reference in a new issue