tests_archive/tests/testthat/test-auth.R

context("Authorization")

test_that("API key can be set", {

  set_api_key(api_key = api_key)
  expect_identical(gcnlp_env$GCNLP_API_KEY, api_key)

})

test_that("API key can be retrieved", {

  expect_identical(gcnlp_key(), api_key)

})
BrianWeinstein/googlenlp documentation built on May 6, 2019, 8:47 a.m.