The fetch_player_stats_afltables works for various inputs checks that there are no NA Brownlow.Votes values. This test uses the current season as its test data (if it has commenced), but if the Brownlow count hasn't yet been held, then all values will be NA. This was introduced in 1d45fbd. Previously this separately checked the previous year to ensure Brownlow votes were present.
Failure (test-fetch-player-stats.R:34): fetch_player_stats_afltables works for various inputs
sum(is.na(dat$Brownlow.Votes)) (`actual`) not equal to 0 (`expected`).
`actual`: 828
`expected`: 0
The
fetch_player_stats_afltables works for various inputs
checks that there are no NA Brownlow.Votes values. This test uses the current season as its test data (if it has commenced), but if the Brownlow count hasn't yet been held, then all values will be NA. This was introduced in 1d45fbd. Previously this separately checked the previous year to ensure Brownlow votes were present.