Skip to content

Commit

Permalink
add test for multiple teams in same season
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyelhabr committed Sep 18, 2023
1 parent 7119e2d commit 8ab8065
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/testthat/test-fbref.R
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,11 @@ test_that("fb_player_match_logs() works", {
ederson_summary <- fb_player_match_logs("https://fbref.com/en/players/3bb7b8b4/Ederson", season_end_year = 2021, stat_type = 'summary', time_pause = 4)
expect_type(ederson_summary, "list")
expect_false(nrow(ederson_summary) == 0)

## multiple teams in same season
messi_summary <- fb_player_match_logs("https://fbref.com/en/players/d70ce98e/Lionel-Messi", season_end_year = 2023, stat_type = 'summary', time_pause = 4)
expect_type(messi_summary, "list")
expect_false(nrow(messi_summary) == 0)
})


Expand Down

0 comments on commit 8ab8065

Please sign in to comment.