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))
})
evanodell/cqcr documentation built on April 24, 2023, 12:40 a.m.