@@ -22,7 +22,7 @@ test_that("project_path() uses Quarto environment variables", {
2222 temp_dir ,
2323 " project"
2424 )),
25- QUARTO_PROJECT_DIR = " "
25+ QUARTO_PROJECT_DIR = NA
2626 ),
2727 expect_identical(
2828 project_path(" data" , " file.csv" ),
@@ -31,7 +31,7 @@ test_that("project_path() uses Quarto environment variables", {
3131 )
3232 withr :: with_envvar(
3333 c(
34- QUARTO_PROJECT_ROOT = " " ,
34+ QUARTO_PROJECT_ROOT = NA ,
3535 QUARTO_PROJECT_DIR = xfun :: normalize_path(file.path(temp_dir , " project" ))
3636 ),
3737 {
@@ -134,23 +134,23 @@ test_that("project_path() handles xfun::proj_root() errors gracefully", {
134134test_that(" is_running_quarto_project() detects environment variables" , {
135135 withr :: with_envvar(
136136 c(
137- QUARTO_PROJECT_ROOT = " " ,
138- QUARTO_PROJECT_DIR = " "
137+ QUARTO_PROJECT_ROOT = NA ,
138+ QUARTO_PROJECT_DIR = NA
139139 ),
140140 expect_null(get_running_project_root())
141141 )
142142
143143 withr :: with_envvar(
144144 c(
145145 QUARTO_PROJECT_ROOT = " /some/path" ,
146- QUARTO_PROJECT_DIR = " "
146+ QUARTO_PROJECT_DIR = NA
147147 ),
148148 expect_identical(get_running_project_root(), " /some/path" )
149149 )
150150
151151 withr :: with_envvar(
152152 c(
153- QUARTO_PROJECT_ROOT = " " ,
153+ QUARTO_PROJECT_ROOT = NA ,
154154 QUARTO_PROJECT_DIR = " /some/path"
155155 ),
156156 expect_identical(get_running_project_root(), " /some/path" )
0 commit comments