Skip to content

Commit 573ed24

Browse files
committed
Unset QUARTO_R_QUIET in test that are impacted by it
1 parent fef488b commit 573ed24

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/testthat/test-quarto-args.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ test_that("create quiete arg", {
1818
})
1919

2020
test_that("quarto.quiet options takes over", {
21+
withr::local_envvar(list(QUARTO_R_QUIET = NA))
2122
expect_identical(is_quiet(TRUE), TRUE)
2223
expect_identical(is_quiet(FALSE), FALSE)
2324
expect_identical(is_quiet(NA), FALSE)
@@ -57,6 +58,7 @@ test_that("QUARTO_R_QUIET options takes over", {
5758
})
5859

5960
test_that("quarto.quiet options takes over QUARTO_R_QUIET", {
61+
withr::local_envvar(list(QUARTO_R_QUIET = NA))
6062
withr::with_options(list(quarto.quiet = TRUE), {
6163
withr::with_envvar(list(QUARTO_R_QUIET = FALSE), {
6264
expect_identical(is_quiet(TRUE), TRUE)

0 commit comments

Comments
 (0)