Skip to content

Commit

Permalink
test: limit option conservation test to "diseasystore."
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusSkytte committed Dec 19, 2023
1 parent 70b2094 commit 36de3b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/setup.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Store the current options (for later conservation test -- see test-zzz.R)
diseasy_opts <- purrr::keep(names(options()), ~ startsWith(., "diseasy")) |>
diseasy_opts <- purrr::keep(names(options()), ~ startsWith(., "diseasystore.")) |>
purrr::map(options) |>
purrr::reduce(c)

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-zzz.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
test_that(r"{options are conserved during testing}", {
current_diseasy_opts <- purrr::keep(names(options()), ~ startsWith(., "diseasy")) |>
current_diseasy_opts <- purrr::keep(names(options()), ~ startsWith(., "diseasystore.")) |>
purrr::map(options) |>
purrr::reduce(c)

Expand Down

0 comments on commit 36de3b9

Please sign in to comment.