tests/testthat/test_read_data_package_report_summary.R

context("Summarize evaluate report")

testthat::test_that("read_data_package_report_summary() works", {
  vcr::skip_if_vcr_off()
  vcr::use_cassette("read_data_package_report_summary", {
    expect_message(
      read_data_package_report_summary(
        packageId = "knb-lter-knz.260.4",
        with_exceptions = FALSE))
  })
  vcr::use_cassette("read_data_package_report_summary_with_exceptions", {
    expect_warning(
      read_data_package_report_summary(
        packageId = "knb-lter-knz.260.4",
        with_exceptions = TRUE))
  })
})

Try the EDIutils package in your browser

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

EDIutils documentation built on Oct. 11, 2023, 1:08 a.m.