mirror of
https://codeberg.org/icewind/ugc-scaper.git
synced 2026-06-03 18:24:10 +02:00
handle older(?) team membership format
This commit is contained in:
parent
4b11b636c7
commit
dc400747fd
7 changed files with 2673 additions and 12 deletions
|
|
@ -29,6 +29,14 @@ fn test_parse_team_html() {
|
|||
assert_json_snapshot!(parsed);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_parse_older_team_html() {
|
||||
let body = read_to_string("tests/data/team_4105.html").unwrap();
|
||||
let parser = TeamParser::new();
|
||||
let parsed = parser.parse(&body).unwrap();
|
||||
assert_json_snapshot!(parsed);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_parse_team_changed_name_html() {
|
||||
let body = read_to_string("tests/data/team_6929.html").unwrap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue