From 03b41452eab011c1d83731406a47757880f90699 Mon Sep 17 00:00:00 2001 From: wlandau Date: Fri, 15 Nov 2024 10:54:30 -0500 Subject: [PATCH] test with profile --- tests/testthat/test-tar_quarto_files.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/testthat/test-tar_quarto_files.R b/tests/testthat/test-tar_quarto_files.R index 5d80049..9a37ee6 100644 --- a/tests/testthat/test-tar_quarto_files.R +++ b/tests/testthat/test-tar_quarto_files.R @@ -24,6 +24,7 @@ targets::tar_test("tar_quarto_files() project", { skip_on_cran() skip_quarto() fs::dir_create("x") + on.exit(unlink("x", recursive = TRUE)) lines <- c( "project:", " type: book", @@ -55,7 +56,7 @@ targets::tar_test("tar_quarto_files() project", { "```" ) writeLines(lines, file.path("x", "r2.qmd")) - info <- tar_quarto_files("x") + info <- tar_quarto_files("x", profile = "example_profile") if (identical(tolower(Sys.info()[["sysname"]]), "windows")) { expect_equal( sort(basename(info$sources)),