tests/testthat/test-ncaa_wbb_teams.R

test_that("NCAA - Get WBB Teams", {
  skip_on_cran()
  skip_on_ci()
  x <- ncaa_wbb_teams(year = most_recent_wbb_season(), division = 1)
  
  cols <- c(
    "team_id",
    "team_name",
    "team_url",
    "conference_id",
    "conference",
    "division",
    "year",
    "season_id"
  )
  expect_in(sort(colnames(x)), sort(cols))
  expect_s3_class(x, 'data.frame')
  
})

Try the wehoop package in your browser

Any scripts or data that you put into this service are public.

wehoop documentation built on Nov. 26, 2023, 1:08 a.m.