tests/testthat/test-toa_requests.R

cols <- c(
  "requests_remaining",
  "requests_used"
)

test_that("The Odds API - Requests", {
  skip_on_cran()
  # skip_on_ci()
  x <- toa_requests()
  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.