tests/testthat/test-get_info_covid19tunisia.R

raw_cols <-
  c(
    "date",
    "location",
    "location_type",
    "location_code",
    "location_code_type",
    "data_type",
    "value")

test_that("original cols we care about are still there", {
  raw <- readr::read_csv(
    url
  )

  expect_length(
    setdiff(raw_cols, names(raw)),
    0L
  )
})

Try the covid19tunisia package in your browser

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

covid19tunisia documentation built on May 29, 2024, 1:37 a.m.