tests/testthat/test-changes.R

test_that("cqc_changes works", {
  skip_on_cran()

  changes_provider <- cqc_changes(
    organisation_type = "provider",
    start_date = "2019-03-10",
    end_date = "2019-03-12"
  )

  expect_true(tibble::is_tibble(changes_provider))

  changes_location <- cqc_changes(
    organisation_type = "LoCAtiOn",
    start_date = "2019-03-10",
    end_date = "2019-03-11"
  )

  expect_true(tibble::is_tibble(changes_location))
})

Try the cqcr package in your browser

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

cqcr documentation built on Oct. 7, 2019, 5:06 p.m.