tests/testthat/helper-funs.R

purge_secrets <- function() {
  x <- aws_secrets_list()
  if (!is_empty(x$SecretList)) {
    x$SecretList %>%
      purrr::map_vec("Name") %>%
      purrr::map(aws_secrets_delete, ForceDeleteWithoutRecovery = TRUE)
  }
}

running_local_only_tests <- function() {
  as.logical(Sys.getenv("SIXTYFOUR_RUN_LOCAL_ONLY_TESTS", FALSE))
}

Try the sixtyfour package in your browser

Any scripts or data that you put into this service are public.

sixtyfour documentation built on April 3, 2025, 8:22 p.m.