tests/testthat/test-get_table.R

x <- connect_oxcovid19() %>%
  get_table(tbl_name = "epidemiology")

test_that("get_table output is class tbl_PqConnection object", {
  expect_is(x, "tbl_PqConnection")
})

test_that("warning works", {
  expect_error(connect_oxcovid19() %>% get_table(tbl_name = "epi"))
})

Try the oxcovid19 package in your browser

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

oxcovid19 documentation built on Jan. 13, 2021, 8:50 p.m.