@ -1,6 +1,8 @@
context("box")
check_api <- function() {
skip_on_cran()
code <- NA
try(code <- httr::status_code(httr::GET(osem_endpoint())))
if (is.na(code)) skip("API not available")
context("boxes")
context("counts")
context("measurements")
@ -10,7 +12,6 @@ try({
boxes <- osem_boxes()
})
test_that("measurements can be retrieved for a phenomenon", {
check_api()
context("phenomena")