tests/testthat.R

library(testthat)

test_that("Testing the URL validity", {
  expect_equal(httr::status_code(httr::GET("https://omabrowser.org/api")), 200 ) #checking that the server is live and accesible

})
klarakaleb/OmaDB documentation built on April 18, 2024, 8:03 a.m.