tests/testthat/test_sections.R

context("Test section metadata retrieval")

test_that("Basic section retrieval works", {
  skip_on_cran()
  results <- guardian_sections("test", "business")
  expect_equal(length(results), 4)
  expect_equal(names(results), c("status", "userTier", "total", "results"))
})

Try the rdian package in your browser

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

rdian documentation built on May 2, 2019, 3:26 p.m.