tests/testthat/helper.R

library(httptest)
library(httr)

if (Sys.getenv("MOCK_BYPASS") == "true") {
  with_mock_api <- force
} else if (Sys.getenv("MOCK_BYPASS") == "capture") {
  with_mock_api <- capture_requests
}
rOpenGov/fmi2 documentation built on May 5, 2024, 11:16 a.m.