diff --git a/tests/docs/smoke-all/julia/execution-env-project/.gitignore b/tests/docs/smoke-all/julia/execution-env-project/.gitignore deleted file mode 100644 index 075b2542afb..00000000000 --- a/tests/docs/smoke-all/julia/execution-env-project/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/.quarto/ diff --git a/tests/docs/smoke-all/julia/execution-env-project/_quarto.yml b/tests/docs/smoke-all/julia/execution-env-project/_quarto.yml deleted file mode 100644 index b8bae5830fa..00000000000 --- a/tests/docs/smoke-all/julia/execution-env-project/_quarto.yml +++ /dev/null @@ -1,2 +0,0 @@ -project: - type: default diff --git a/tests/docs/smoke-all/julia/execution-env-project/execution-env-var.qmd b/tests/docs/smoke-all/julia/execution-env-project/execution-env-var.qmd deleted file mode 100644 index 8e160f9f717..00000000000 --- a/tests/docs/smoke-all/julia/execution-env-project/execution-env-var.qmd +++ /dev/null @@ -1,33 +0,0 @@ ---- -title: "Testing env var available in execution in project context" -format: markdown -_quarto: - tests: - markdown: - ensureFileRegexMatches: - - - - 'QUARTO_PROJECT_ROOT: \S+smoke-all[\\/]julia[\\/]execution-env-project' - - 'QUARTO_DOCUMENT_PATH: \S+smoke-all[\\/]julia[\\/]execution-env-project' - - 'QUARTO_DOCUMENT_FILE: execution-env-var.qmd' - - ['UNDEFINED'] ---- - -#### Show execution env var - -````{julia} -#| echo: false -#| output: asis -function get_env(name, default) - haskey(ENV, name) ? ENV[name] : default -end - -# Create the markdown output with the same formatting -env_vars = """```{=markdown} -QUARTO_PROJECT_ROOT: $(get_env("QUARTO_PROJECT_ROOT", "UNDEFINED")) -QUARTO_DOCUMENT_PATH: $(get_env("QUARTO_DOCUMENT_PATH", "UNDEFINED")) -QUARTO_DOCUMENT_FILE: $(get_env("QUARTO_DOCUMENT_FILE", "UNDEFINED")) -``` -""" - -print(env_vars) -```` diff --git a/tests/docs/smoke-all/julia/execution-env-var.qmd b/tests/docs/smoke-all/julia/execution-env-var.qmd deleted file mode 100644 index 0a008a727bc..00000000000 --- a/tests/docs/smoke-all/julia/execution-env-var.qmd +++ /dev/null @@ -1,34 +0,0 @@ ---- -title: "Testing env var available in execution in single file project context" -engine: julia -format: markdown -_quarto: - tests: - markdown: - ensureFileRegexMatches: - - - - 'QUARTO_PROJECT_ROOT: \S+[\\/]smoke-all[\\/]julia' - - 'QUARTO_DOCUMENT_PATH: \S+[\\/]smoke-all[\\/]julia' - - 'QUARTO_DOCUMENT_FILE: execution-env-var.qmd' - - ['UNDEFINED'] ---- - -#### Show execution env var - -````{julia} -#| echo: false -#| output: asis -function get_env(name, default) - haskey(ENV, name) ? ENV[name] : default -end - -# Create the markdown output with the same formatting -env_vars = """```{=markdown} -QUARTO_PROJECT_ROOT: $(get_env("QUARTO_PROJECT_ROOT", "UNDEFINED")) -QUARTO_DOCUMENT_PATH: $(get_env("QUARTO_DOCUMENT_PATH", "UNDEFINED")) -QUARTO_DOCUMENT_FILE: $(get_env("QUARTO_DOCUMENT_FILE", "UNDEFINED")) -``` -""" - -print(env_vars) -````