tests/testthat/test-fc_headers.R

context("fc_headers")

h <-  fc_headers(path = "/user", public_key = "invalid", private_key = "invalid")

test_that("fc_headers works", {
  expect_is(h, "request")
  expect_equal(names(h$headers), c("Date", "Authorization"))
  expect_true(grepl("^hmac invalid\\:", h$headers[["Authorization"]]))
})

Try the rfieldclimate package in your browser

Any scripts or data that you put into this service are public.

rfieldclimate documentation built on March 31, 2023, 5:33 p.m.