support TF2 Sol 1vs1

This commit is contained in:
Robin Appelman 2025-04-15 14:10:13 +02:00
commit 0d2eb1ee54
4 changed files with 3314 additions and 0 deletions

3288
tests/data/team_2909.html Normal file

File diff suppressed because it is too large Load diff

View file

@ -38,6 +38,7 @@ fn test_parse_player_details_html(input: &str, name: &str) {
#[test_case("team_29228.html", "team_newlines_join_date")]
#[test_case("team_10763.html", "team_na_4v4")]
#[test_case("team_3975.html", "team_empty_player")]
#[test_case("team_2909.html", "team_1v1_sol")]
#[cfg(feature = "serde")]
fn test_parse_team_html(input: &str, name: &str) {
let body = read_to_string(format!("tests/data/{input}")).unwrap();

View file

@ -0,0 +1,19 @@
---
source: tests/snapshot.rs
expression: parsed
---
{
"name": "TruckerPete",
"tag": "{RoFL}",
"image": null,
"format": "1v1",
"region": null,
"timezone": null,
"steam_group": null,
"division": "Eliminated Players",
"description": "",
"titles": [],
"members": [],
"results": [],
"name_changes": []
}