tests/testthat/test-ping.R

context("ping")

skip_on_cran()

u = get_test_url()

test_that("ping returns false when run against non-CKAN URLS", {
  expect_false(ping(url = "http://www.google.com"))
})

check_ckan(u)

test_that("ping return true", {
  expect_true(ping(url = u))
})

Try the ckanr package in your browser

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

ckanr documentation built on March 31, 2023, 6:54 p.m.