tests/testthat/test-fnc_read_zenodo.R

testthat::test_that(
  desc = "read_zenodo works",
  code = {
    suppressMessages({
      x <- eCerto:::read_zenodo(id = "8380870")
    })
    testthat::expect_true(is.list(x))
    testthat::expect_length(x, 6)
    testthat::expect_true("Certification" %in% names(x))
    testthat::expect_warning(eCerto:::read_zenodo(id = "a"))
  }
)

Try the eCerto package in your browser

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

eCerto documentation built on April 12, 2025, 9:13 a.m.