tests/testthat/test-zzz_auth.R

context("deauthorization")

# Clean up creds from environment after testing
suppressMessages(geoclient_api_key(key = NULL, overwrite = TRUE, install = TRUE))

test_that("environment cleaned", {
  expect_identical(Sys.getenv("GEOCLIENT_KEY"), "")
})
austensen/geoclient documentation built on Nov. 20, 2021, 11:12 p.m.