mirror of
https://github.com/Steffo99/patched-porobot.git
synced 2024-12-22 17:44:22 +00:00
Update to 4_5_0
This commit is contained in:
parent
ca5760d5e0
commit
f7b7a8276d
3 changed files with 23 additions and 19 deletions
|
@ -112,7 +112,7 @@ mod tests {
|
|||
};
|
||||
}
|
||||
|
||||
test_fetch!(test_fetch_4_3_0_en_us, "4_3_0", "en_us");
|
||||
test_fetch!(test_fetch_4_3_0_it_it, "4_3_0", "it_it");
|
||||
test_fetch!(test_fetch_4_5_0_en_us, "4_5_0", "en_us");
|
||||
test_fetch!(test_fetch_4_5_0_it_it, "4_5_0", "it_it");
|
||||
test_fetch!(test_fetch_latest_en_us, "latest", "en_us");
|
||||
}
|
|
@ -147,7 +147,7 @@ pub struct Card {
|
|||
pub supertype: CardSupertype,
|
||||
|
||||
/// The formats the card can be played in, such as [`Standard`](CardFormat::Standard) and [`Eternal`](CardFormat::Eternal).
|
||||
#[serde(rename = "formatRefs")]
|
||||
#[serde(rename = "formatRefs", default)]
|
||||
pub formats: Vec<CardFormat>
|
||||
}
|
||||
|
||||
|
|
|
@ -90,28 +90,31 @@ mod tests {
|
|||
async fn $id() {
|
||||
let client = reqwest::Client::new();
|
||||
let result = crate::data::setbundle::SetBundle::fetch(&client, &format!("https://dd.b.pvp.net/{}", $version), $locale, $set).await;
|
||||
println!("{:#?}", &result);
|
||||
assert!(result.is_ok());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
test_fetch!(test_fetch_4_3_0_en_us_set1, "4_3_0", "en_us", "set1");
|
||||
test_fetch!(test_fetch_4_3_0_en_us_set2, "4_3_0", "en_us", "set2");
|
||||
test_fetch!(test_fetch_4_3_0_en_us_set3, "4_3_0", "en_us", "set3");
|
||||
test_fetch!(test_fetch_4_3_0_en_us_set4, "4_3_0", "en_us", "set4");
|
||||
test_fetch!(test_fetch_4_3_0_en_us_set5, "4_3_0", "en_us", "set5");
|
||||
test_fetch!(test_fetch_4_3_0_en_us_set6, "4_3_0", "en_us", "set6");
|
||||
test_fetch!(test_fetch_4_3_0_en_us_set6cde, "4_3_0", "en_us", "set6cde");
|
||||
test_fetch!(test_fetch_4_3_0_en_us_set7, "4_3_0", "en_us", "set7");
|
||||
test_fetch!(test_fetch_4_5_0_en_us_set1, "4_5_0", "en_us", "set1");
|
||||
test_fetch!(test_fetch_4_5_0_en_us_set2, "4_5_0", "en_us", "set2");
|
||||
test_fetch!(test_fetch_4_5_0_en_us_set3, "4_5_0", "en_us", "set3");
|
||||
test_fetch!(test_fetch_4_5_0_en_us_set4, "4_5_0", "en_us", "set4");
|
||||
test_fetch!(test_fetch_4_5_0_en_us_set5, "4_5_0", "en_us", "set5");
|
||||
test_fetch!(test_fetch_4_5_0_en_us_set6, "4_5_0", "en_us", "set6");
|
||||
test_fetch!(test_fetch_4_5_0_en_us_set6cde, "4_5_0", "en_us", "set6cde");
|
||||
test_fetch!(test_fetch_4_5_0_en_us_set7, "4_5_0", "en_us", "set7");
|
||||
// test_fetch!(test_fetch_4_5_0_en_us_set7b, "4_5_0", "en_us", "set7b"); // TODO: Unignore me when set releases
|
||||
|
||||
test_fetch!(test_fetch_4_3_0_it_it_set1, "4_3_0", "it_it", "set1");
|
||||
test_fetch!(test_fetch_4_3_0_it_it_set2, "4_3_0", "it_it", "set2");
|
||||
test_fetch!(test_fetch_4_3_0_it_it_set3, "4_3_0", "it_it", "set3");
|
||||
test_fetch!(test_fetch_4_3_0_it_it_set4, "4_3_0", "it_it", "set4");
|
||||
test_fetch!(test_fetch_4_3_0_it_it_set5, "4_3_0", "it_it", "set5");
|
||||
test_fetch!(test_fetch_4_3_0_it_it_set6, "4_3_0", "it_it", "set6");
|
||||
test_fetch!(test_fetch_4_3_0_it_it_set6cde, "4_3_0", "it_it", "set6cde");
|
||||
test_fetch!(test_fetch_4_3_0_it_it_set7, "4_3_0", "it_it", "set7");
|
||||
test_fetch!(test_fetch_4_5_0_it_it_set1, "4_5_0", "it_it", "set1");
|
||||
test_fetch!(test_fetch_4_5_0_it_it_set2, "4_5_0", "it_it", "set2");
|
||||
test_fetch!(test_fetch_4_5_0_it_it_set3, "4_5_0", "it_it", "set3");
|
||||
test_fetch!(test_fetch_4_5_0_it_it_set4, "4_5_0", "it_it", "set4");
|
||||
test_fetch!(test_fetch_4_5_0_it_it_set5, "4_5_0", "it_it", "set5");
|
||||
test_fetch!(test_fetch_4_5_0_it_it_set6, "4_5_0", "it_it", "set6");
|
||||
test_fetch!(test_fetch_4_5_0_it_it_set6cde, "4_5_0", "it_it", "set6cde");
|
||||
test_fetch!(test_fetch_4_5_0_it_it_set7, "4_5_0", "it_it", "set7");
|
||||
// test_fetch!(test_fetch_4_5_0_it_it_set7b, "4_5_0", "it_it", "set7b"); // TODO: Unignore me when set releases
|
||||
|
||||
test_fetch!(test_fetch_latest_en_us_set1, "latest", "en_us", "set1");
|
||||
test_fetch!(test_fetch_latest_en_us_set2, "latest", "en_us", "set2");
|
||||
|
@ -121,6 +124,7 @@ mod tests {
|
|||
test_fetch!(test_fetch_latest_en_us_set6, "latest", "en_us", "set6");
|
||||
test_fetch!(test_fetch_latest_en_us_set6cde, "latest", "en_us", "set6cde");
|
||||
test_fetch!(test_fetch_latest_en_us_set7, "latest", "en_us", "set7");
|
||||
test_fetch!(test_fetch_latest_en_us_set7b, "latest", "en_us", "set7b");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue