diff --git a/DESCRIPTION b/DESCRIPTION index 9e4d4e2..ed07f05 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -26,6 +26,7 @@ Imports: rlang, glue Suggests: - testthat (>= 3.0.0) + testthat (>= 3.0.0), + withr Config/testthat/edition: 3 Config/testthat/parallel: true diff --git a/tests/testthat/test-process_repos.R b/tests/testthat/test-process_repos.R index fc8767a..d833f48 100644 --- a/tests/testthat/test-process_repos.R +++ b/tests/testthat/test-process_repos.R @@ -1,6 +1,5 @@ test_that("process_repos() returns results with repo metadata", { - verbose_off() - + withr::local_envvar(new = c("GITAI_VERBOSE" = FALSE)) my_project <- initialize_project("gitai_test_project") |> set_github_repos( repos = c("r-world-devs/GitStats", "openpharma/DataFakeR") diff --git a/tests/testthat/test-set_repos.R b/tests/testthat/test-set_repos.R index d6f3e3c..377bb93 100644 --- a/tests/testthat/test-set_repos.R +++ b/tests/testthat/test-set_repos.R @@ -1,5 +1,5 @@ test_that("set_*_repos creates GitStats object inside GitAI with repos set", { - verbose_off() + withr::local_envvar(new = c("GITAI_VERBOSE" = FALSE)) my_project <- initialize_project("gitai_test_project") my_project <- my_project |>