Skip to content

Commit 3d77204

Browse files
test only blocking behavior
1 parent 07e184a commit 3d77204

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/testthat/test-conda.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ if (!on_cran()) {
5454
git2r::init()
5555
usethis::proj_set(".")
5656
usethis::use_readme_rmd(open = FALSE)
57+
withr::local_options(precommit.block_install_hooks = TRUE)
5758

5859
# usethis hook is removed without error
5960
expect_message(
@@ -150,6 +151,7 @@ if (!on_cran()) {
150151
expect_message(install_precommit(), "already installed")
151152
}
152153
tempdir <- local_test_setup(use_precommit = FALSE, quiet = FALSE, install_hooks = FALSE)
154+
withr::local_options(precommit.block_install_hooks = TRUE)
153155
withr::with_dir(
154156
tempdir,
155157
{

0 commit comments

Comments
 (0)