tests/testthat/test-create_get_data_function.R

context("Test create_get_data_function")

test_that("create_get_data_function creates function for data set ID", {

  get_cpih01 <- create_get_data_function("cpih01")
  expect_type(get_cpih01, "closure")
  expect_equal(formals(get_cpih01), pairlist(time = NULL,
                                             geography = NULL,
                                             aggregate = NULL))

})
hamstr147/onsRapi documentation built on Oct. 23, 2020, 2:36 a.m.