tests/testserver/test_ts_locations.R

context("ts locations")

con <- ba_db()$testserver

test_that("Locations are present", {

  loc <- ba_locations(con = con)
  expect_that(nrow(loc) >= 17, is_true())

})

test_that("Locations output formats work", {

  loc <- ba_locations(con = con, rclass = "json")
  expect_that("json" %in% class(loc), is_true())

})
CIP-RIU/brapi documentation built on Oct. 17, 2019, 2 p.m.