tests/testthat/test-refresh_covid19tunisia.R

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

test_that("location works", {

  res <- refresh_covid19tunisia()

  expect_named(res, refresh_col_names)

  expect_true(
    "Tunis" %in% unique(res$location)
  )
})

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.