Skip to content

Commit

Permalink
Fix defer() in test mm_authorize() sets credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
asadow committed Nov 18, 2023
1 parent 7e061fc commit 0437be2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/testthat/test-authorize.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ test_that("mm_authorize() gives bad url error", {

test_that("mm_authorize() sets credentials", {
skip_on_cran()
key_original <- mm_key()
url_original <- mm_url()
withr::defer({
mm_authorize(
key = testing_key(),
url = "https://api.megamation.com/uog/dl",
key = key_original,
url = url_original,
overwrite = TRUE
)
})
Expand Down

0 comments on commit 0437be2

Please sign in to comment.