tests/testthat/test-rl_key.R

context("test-rl_key")

test_that("rl_key produces expected URL and message", {
  expect_equal(rl_use_iucn(), "https://apiv3.iucnredlist.org/api/v3/token")
  expect_message(rl_use_iucn(), "After getting your key set")
})

Try the rredlist package in your browser

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

rredlist documentation built on Nov. 12, 2022, 1:17 a.m.