Nothing
test_that("Test offline", {
skip_on_cran()
skip_if_offline()
local_mocked_bindings(is_online_fun = function(...) {
FALSE
})
expect_snapshot(
fend <- catr_ovc_get_cod_provinces()
)
expect_null(fend)
local_mocked_bindings(is_online_fun = function(...) {
httr2::is_online()
})
expect_identical(is_online_fun(), httr2::is_online())
})
test_that("Test 404 all", {
skip_on_cran()
skip_if_offline()
local_mocked_bindings(is_404 = function(...) {
TRUE
})
expect_snapshot(
fend <- catr_ovc_get_cod_provinces()
)
expect_null(fend)
local_mocked_bindings(is_404 = function(...) {
FALSE
})
})
test_that("Callejero provinces", {
skip_on_cran()
skip_if_offline()
s <- catr_ovc_get_cod_provinces()
expect_s3_class(s, "tbl")
expect_message(catr_ovc_get_cod_provinces(verbose = TRUE))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.