Skip to content

Commit

Permalink
change fragile snapshot test to class test
Browse files Browse the repository at this point in the history
  • Loading branch information
ateucher committed Jul 7, 2024
1 parent 154d021 commit e90b821
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 38 deletions.
36 changes: 0 additions & 36 deletions tests/testthat/_snaps/options.md

This file was deleted.

5 changes: 3 additions & 2 deletions tests/testthat/test-options.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ test_that("bcdata.single_download_limit is deprecated but works", {
skip_on_cran()
withr::local_options(list(bcdata.single_download_limit = 1))
withr::local_envvar(list(BCDC_KEY = NULL)) # so snapshot not affected by message
expect_snapshot(
bcdc_query_geodata(record = '76b1b7a3-2112-4444-857a-afccf7b20da8')
expect_s3_class(
bcdc_query_geodata(record = '76b1b7a3-2112-4444-857a-afccf7b20da8'),
"bcdc_promise"
)
})

Expand Down

0 comments on commit e90b821

Please sign in to comment.