tests/testthat/test-toa_sports.R

cols <- c(
  "key",
  "group",
  "title",
  "description",
  "active",
  "has_outrights"
)

test_that("The Odds API - Sports", {
  skip_on_cran()
  # skip_on_ci()
  x <- toa_sports(all_sports = TRUE)
  # expect_equal(nrow(x), 77)
  expect_equal(colnames(x), cols)
  expect_s3_class(x, "data.frame")
})

Try the oddsapiR package in your browser

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

oddsapiR documentation built on March 31, 2023, 5:27 p.m.