Skip to content

Commit

Permalink
Also use GITHUB_PAT env var
Browse files Browse the repository at this point in the history
Fixes #173
  • Loading branch information
hadley committed Dec 16, 2024
1 parent 70526bf commit 94e3958
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testthat/test-provider-github.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
test_that("uses to GITHUB_PAT if set", {
withr::local_envvar(GITHUB_PAT = "abc")
expect_equal(github_key(), "abc")
})

0 comments on commit 94e3958

Please sign in to comment.