We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31343e3 commit 127de77Copy full SHA for 127de77
tests/testthat/test-auth.R
@@ -1,14 +1,5 @@
1
test_that("get_api_key", {
2
withr::with_envvar(c(DELPHI_EPIDATA_KEY = "epidata_key_from_envvar"), {
3
- withr::with_options(list(delphi.epidata.key = "epidata_key_from_options"), {
4
- # option takes precedence over environment variable
5
- expect_identical(get_api_key(), "epidata_key_from_options")
6
- })
7
8
- withr::with_envvar(c(DELPHI_EPIDATA_KEY = NA_character_), {
9
10
- # option by itself works:
11
12
+ expect_identical(get_api_key(), "epidata_key_from_envvar")
13
})
14
0 commit comments